observe property
an observable class to which you want StateBuilder to subscribe.
StateBuilder(
observe:()=> myModel1,
builder:(BuildContext context, ReactiveModel model) =>MyWidget(),
)
states_rebuilder uses the observer pattern.
Observable classes are classes that extends StatesRebuilder
.
ReactiveModel is one of them.
Implementation
final ReactiveModel<T> Function()? observe;