reset method

Resets configuration to default configuration which has been provided while initializing MaterialApp. If setTheme method has been called with isDefault to true, Calling this method afterwards will use theme provided by setTheme as default themes. Implementations of this method should end with a call to the inherited method, as in super.reset().

Implementation

@mustCallSuper
Future<bool> reset() async {
  _preferences.reset();
  updateState();
  modeChangeNotifier.value = mode;
  return _preferences.save();
}