initialize static method

Future<void> initialize()

Implementation

static Future<void> initialize() async {
  // Load .env
  try {
    await EnvLoader.loadEnv();
    final gameUrl = EnvLoader.gameUrl;
    print("Game url from plugin:: $gameUrl");
  } catch (e) {
    throw Exception(
        "Please ensure you have mentioned your .env file in pubspec.yaml file");
  }
  await MetamaskInitializer.initialize();
}