init method
Initializes the dependency containers and binds global exception handlers.
This asynchronous method boots up the core DI configuration via GetItConfiguration, extracts the registered FlutterErrorHandler instance, and registers the global hooks to intercept uncaught UI and platform-level exceptions.
Implementation
Future<void> init() async {
// Note: It is ideal to invoke GetItConfiguration.init() BEFORE resolving the handler
// to ensure that FlutterErrorHandler is fully registered within the GetIt service locator container.
await GetItConfiguration.init();
// Resolve the centralized FlutterErrorHandler instance from the Service Locator.
final FlutterErrorHandler executor = GetIt.I.get<FlutterErrorHandler>();
// Register global error handlers across the Flutter framework and native channels.
executor.registerFlutterErrorHandler();
}