init static method
Implementation
static Future<void> init({
required Function(GetIt, Map<String, String> env) configure,
Function(GetIt, Map<String, String>)? finalize,
bool loadEnv = true,
String envFile = '.env',
}) async {
if (loadEnv) await dotenv.load(fileName: envFile);
configure(di, dotenv.env);
await di.allReady(
timeout: const Duration(seconds: 5),
);
if (finalize != null) finalize(di, dotenv.env);
}