dispose method

  1. @override
void dispose()
override

Dispose of the theme service and clean up resources

Implementation

@override
void dispose() {
  if (_isDisposed) return;
  _isDisposed = true;
  WidgetsBinding.instance.removeObserver(this);
  _themeModeNotifier.dispose();
  _systemBrightnessNotifier.dispose();
  super.dispose();
}