initialize static method

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

Initialize the theme with optional custom themes provided by the user

Implementation

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

  /// Apply custom themes if provided; otherwise use default
  _defaultLightTheme = customLightTheme ?? _core;
  _defaultDarkTheme = customDarkTheme ?? _core;

  /// Use the provided light or dark theme, or fall back to defaults
  cT = _getEffectiveTheme(
      light: customLightTheme, dark: customDarkTheme, themeType: themeType);
}