init method

Future<void> init()

Implementation

Future<void> init() async {
  memoryEnv + await _loadEnv();
  if (useCache) {
    final data = await jsonFromPath(cacheManager.configFilePath(this));
    if (data != null) {
      configs.clear();
      configs.addAll(JSON(data).listValue.map((e) => e as Map).toList());
    }
  }
  for (var config in JSON(configs).listValue) {
    final action = Action.fromJson(config);
    actions.add(action);
  }
}