initialize static method

Future<void> initialize(
  1. String env
)

Implementation

static Future<void> initialize(String env) async {
  final configString = await rootBundle.loadString('config/app_config_$env.json');
  _config = json.decode(configString) as Map<String, dynamic>;
}