Unaconfig constructor

Unaconfig(
  1. String name, {
  2. List<String>? paths,
  3. List<String>? filenamePatterns,
  4. List<ConfigParser>? parsers,
  5. FileSystem fs = const LocalFileSystem(),
})

Implementation

Unaconfig(
  this.name, {
  List<String>? paths,
  List<String>? filenamePatterns,
  List<ConfigParser>? parsers,
  this.fs = const LocalFileSystem(),
})  : paths = paths ??
          [getCurrentDirectory(fs), getProjectRoot(fs), getHomeDirectory(fs)],
      filenamePatterns = filenamePatterns ?? defaultFilenamePatterns,
      parsers = parsers ?? defaultParsers;