setTheme method

  1. @override
void setTheme(
  1. T colorTheme
)
override

Sets the light theme with type T. Note that if your device is in dark mode, using setTheme will not do anything until your device is switched to light mode.

Implementation

@override
void setTheme(T colorTheme) {
  theme = colorTheme;
  notifier?.value = theme;
}