dispose method

  1. @mustCallSuper
  2. @override
void dispose()
override

Clean up resources before the app is finally terminated.

Implementation

@mustCallSuper
@override
void dispose() {
  Prefs.dispose();
  // Assets.init(context); called in App.build() -gp
  Assets.dispose();
  //
  _app.dispose();
  super.dispose();
}