observeMany property
List of observable classes to which you want StateBuilder to subscribe.
StateBuilder(
observeMany:[()=> myModel1,()=> myModel2,()=> myModel3],
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 List<ReactiveModel Function()>? observeMany;