fluorflow_generator 2.0.0
fluorflow_generator: ^2.0.0 copied to clipboard
Code Generator for the FluorFlow package.
2.0.0 - 2024-03-18 #
Features #
BREAKING CHANGES #
- This removes the complex initialization
logic of the
DataViewModel<T>. Instead of using theinitializeDatamethod, now the constructor of the view model requires some form of initial data. This requires developers to explicitely define nullable types and allows thedatafield to be initialized in all cases. To migrate, remove allinitializeDatacalls and provide the constructor with some default data. It is still possible to load data asynchronously, by overwriting theinitializemethod and fetching data there. One is responsible to callsuper.initializein error cases. - This simplifies the routable and dialog config by
removing the
RouteBuilder.customvariant. Basically, to use a custom page route builder, just use the provided property (pageRouteBuilder) and do not set therouteBuilderproperty. If the page route builder is provided, the route builder property is ignored.