initialize static method

void initialize({
  1. ProKitThemeModel? customLightTheme,
  2. ProKitThemeModel? customDarkTheme,
})

Initialize the app theme, allowing optional custom themes to be applied

Implementation

static void initialize({
  ProKitThemeModel? customLightTheme,
  ProKitThemeModel? customDarkTheme,
}) {
  final ThemeType themeType = getThemeType();

  /// Apply custom themes if provided, otherwise fallback to default core themes
  _defaultLightTheme = customLightTheme ?? _core;
  _defaultDarkTheme = customDarkTheme ?? _core;

  /// Set the active theme based on the current theme type (light or dark)
  cT = _getEffectiveTheme(themeType: themeType);
}