immutable_model 0.5.2 copy "immutable_model: ^0.5.2" to clipboard
immutable_model: ^0.5.2 copied to clipboard

outdated

immutable_model helps you write an authoritative and safe domain layer. Easily define valid, hierarchical immutable state models with an expressive API for updating state data and transitioning betwee [...]

example/README.md

Examples #

Examples using immutable_model with different state management systems. The projects have the same UI and demonstrate modeling different kinds of states and the associated data.

The UI includes:

  • The SignIn form shows how to do 'live' user input validation as well as parameterising the authentication logic using the provided ModelEmail and ModelPassword classes as validated value types.
  • The User Choices form shows one can update any value in the model (even nested values) using just the update() function. Also shows how these updates can only take place if the user is authenticated.
  • The Weather Getter shows how the use of an API would work, where severalized data is inputted to the data layer and only valid models are passed back into the domain layer. It also shows the use of 'Strict Updates' where each field in the sub-model must have a value and that value must be valid.

Examples include:

  • With BLoC: An example project using the well-known standard BLoC state management framework
  • With BLoC Cubits: An example project using Cubits from the BLoC state management framework
  • With BLoC Cubits: An example project using Cubits from the BLoC state management framework
2
likes
0
pub points
0%
popularity

Publisher

unverified uploader

immutable_model helps you write an authoritative and safe domain layer. Easily define valid, hierarchical immutable state models with an expressive API for updating state data and transitioning between states. Built on top of built_collection and uses Equatable.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

built_collection, crypto, equatable, logging, meta

More

Packages that depend on immutable_model