init static method
Initializes the theme manager with supported themes
- Ensures Flutter binding is initialized
- Configures dependency injection container
- Retrieves initial theme using GetAppThemUseCase
Throws exceptions from dependency injection or theme loading
Implementation
static Future<void> init({required List<AppTheme> themes}) async {
_appThemes = themes;
WidgetsFlutterBinding.ensureInitialized();
await AppThemeDependencyInjection.configure();
_initialThemeData = themeLocator.get<GetAppThemUseCase>().execute(_appThemes);
}