We switched to Flutter due to the instability of React Native. I cannot describe the happiness of working with a stable resource.
I created a structure for myself in React Native. I was able to access the pages with the "dot" notation both in JSX and in functions by creating static under a main class of components. How healthy the suspect is. Like this: <Component.Form.Input />
Since darts is purely an object language, I could not find an example of this type of structure. Even if I connect the static design of my root class element with the "Singleton" design pattern to the instance, I cannot access the methods below the linked class.
Helpers.Responsive.calcSome(params..)
In the example above, Helper is a class, Responsive is a separate class, and Helper is imported and assigned as a static variable. The calcSome function is a method of the Responsive class. How can I do this with Dart?
This is exactly what I want to do. You can think of each other as a chained class.
Of course, I do not know how healthy this approach will be for a clean code.
If you have different approaches that can work this way, please share as an alternative. I have an idea of how I should proceed.
Thank you for interest.