tadpole 0.1.0 copy "tadpole: ^0.1.0" to clipboard
tadpole: ^0.1.0 copied to clipboard

Flutter's Amphibian to link your data layer with the presenter layer with lifecycle aware properties

0.1.0 #

  • Three Viewmodel APIs in ViewModeMixin for State

    1. registerViewModel(create: ()=>ViewModel()) - instead of passing a viewmodel instance that is created from outside, we pass a function create to tell this API how to create a viewmodel.
    2. registerSharedViewModel(key: someStringConstant, createIfNull: ()=>ViewModel()) - this API shares viewmodel using the key which is a String constant. If the viewmodel associated with key is not already created anywhere in the application, a new viewmodel is created using the function createIfNull and stored
    3. getViewModel
  • For Widgets, that only need the access to the viewmodel registered in the parent, we have ViewModelProviderMixin for Widget

0
likes
110
pub points
0%
popularity

Publisher

verified publisherayushsuman.com

Flutter's Amphibian to link your data layer with the presenter layer with lifecycle aware properties

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on tadpole