getThemeFromThemeMode static method

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

Implementation

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

  switch (themeType) {
    case FTxAppThemeType.light:
      return lightTheme;
    default:
      return darkTheme;
  }
}