getThemeFromThemeMode static method

ThemeData getThemeFromThemeMode({
  1. FxAppThemeType? themeType,
})

Implementation

static ThemeData getThemeFromThemeMode({FxAppThemeType? themeType}) {
  if (themeType == null) {
    themeType = defaultThemeType;
  }

  switch (themeType) {
    case FxAppThemeType.light:
      return lightTheme;
    case FxAppThemeType.black:
      return blackTheme;
    default:
      return darkTheme;
  }
}