dispose property

void Function(BuildContext context, ReactiveModel<T>? model)? dispose
final
StateBuilder(
 dispose:(BuildContext context, ReactiveModel model) {
    myModel.dispose([context, model]);
  },
 models:[myModel],
 builder:(BuildContext context, ReactiveModel model) =>MyWidget(),
)

Called when this object is removed from the tree permanently.

Implementation

final void Function(BuildContext context, ReactiveModel<T>? model)? dispose;