init static method
Initializes and registers all application dependencies asynchronously.
This method defines the central list of configuration modules, iterates through them,
and triggers their respective register method using the shared _injector instance.
Call this method during the early bootstrap phase of the application (e.g., in main.dart).
Implementation
static Future<void> init() async {
// Define the list of DI modules to be registered in the application.
final modules = [ResultexLoggerModule()];
// Iterate through each module and register its dependencies into the service locator.
for (final module in modules) {
module.register(_injector);
}
}