setConfig method

Future<void> setConfig(
  1. ThemeConfig config
)

Replaces the complete configuration.

The new configuration is persisted.

Implementation

Future<void> setConfig(ThemeConfig config) async {
  _config = config;

  await _storage.save(_config);

  notifyListeners();
}