changeTheme method

void changeTheme(
  1. ThemeMode value
)

Implementation

void changeTheme(ThemeMode value) async {
  var raw = androssy.copy(settings: androssy.settings.copy(theme: value));
  var done = await pref.setString(kAndrossyPath, raw.json);
  if (done) notify(raw);
}