setTheme method
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;
}