dispose property Null safety

(void Function?(BuildContext, ReactiveModel<T>)?) dispose
final
StateBuilderOr(
 dispose:(BuildContext context, ReactiveModel model) {
    myModel.dispose([context, model]);
  },
 observe:()=> myModel1,
 onWaiting: ()=> ...
 onError: (error)=> ...
 builder: (context, reactiveModel)=> ...
)

Called when this object is removed from the tree permanently.

Implementation

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