Configuration constructor

Configuration(
  1. String directory,
  2. String? filePrefix,
  3. BaseLogger logger
)

Constructor: reads the configuration file. directory: the configuration file will be searched here filePrefix: the filename without extension. The extension will be found automatically

Implementation

Configuration(String directory, String? filePrefix, BaseLogger logger)
    : super({}, logger) {
  _filename =
      package_path.join(directory, (filePrefix ?? 'configuration') + '.yaml');
  if (!File(_filename).existsSync()) {
    _filename = _filename.substring(0, _filename.length - 4) + 'conf';
  }
}