setTheme static method

dynamic setTheme({
  1. Color? appBarColor,
  2. Color? appBarTextColor,
  3. Color? backgroundColor,
  4. Color? mainColor,
  5. Color? lineColor,
  6. Brightness? brightness,
})

Implementation

static setTheme({
  Color? appBarColor,
  Color? appBarTextColor,
  Color? backgroundColor,
  Color? mainColor,
  Color? lineColor,
  Brightness? brightness,
}) {
  if (appBarColor != null) {
    fastTheme.appBarColor = appBarColor;
  }

  if (appBarTextColor != null) {
    fastTheme.appBarTextColor = appBarTextColor;
  }

  if (backgroundColor != null) {
    fastTheme.backgroundColor = backgroundColor;
  }

  if (mainColor != null) {
    fastTheme.mainColor = mainColor;
  }

  if (lineColor != null) {
    fastTheme.lineColor = lineColor;
  }

  if (brightness != null) {
    fastTheme.brightness = brightness;
  }
}