getAndCheckIfConfigFileExists method

  1. @override
Future<EagleEyeConfig> getAndCheckIfConfigFileExists({
  1. String? configPath,
})
override

Retrieves and parses the Eagle Eye configuration file.

When configPath is omitted, the default eagle_eye_config.json file is loaded from the current directory.

Returns an EagleEyeConfig

Implementation

@override
Future<EagleEyeConfig> getAndCheckIfConfigFileExists({
  String? configPath,
}) async {
  final String configFileContent = await fileHelper
      .getAndCheckIfConfigFileExists(configPath ?? configFileName);

  return jsonConverter.convert(configFileContent);
}