toggle method

void toggle()

Implementation

void toggle() {
  value = value == ThemeMode.light ? ThemeMode.dark : ThemeMode.light;
}