getThemeFromThemeMode static method

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

Implementation

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

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