dispose method

  1. @override
void dispose()
override

disposes of the model releasing resources and removing bindings

Implementation

@override
void dispose() {
  // close the app
  close();

  // remove stash scope
  _stash?.scope?.dispose();

  // dispose of all children
  super.dispose();
}