setTheme method

void setTheme(
  1. ThemeData value
)

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();
}