setTheme method
Sets the theme for the application.
Implementation
void setTheme(ThemeData value) {
if (value.brightness == Brightness.light || config.darkTheme == null) {
config = config.copyWith(theme: value);
} else {
config = config.copyWith(darkTheme: value);
}
update();
}