valueAt method

  1. @override
T? valueAt(
  1. Folder dir
)
override

Return the calculated value of this option, given the directory as context.

If isFile or isDir is set, the returned value will be transformed into a canonical path relative to the current working directory (for arguments) or the config file from which the value was derived.

May throw DartdocOptionError if a command line argument is of the wrong type. If mustExist is true, will throw DartdocFileMissing for command line parameters and file paths in config files that don't point to corresponding files or directories.

Implementation

@override
T? valueAt(Folder dir) {
  if (_argResults.wasParsed(argName)) {
    return _valueAtFromArgs();
  }
  return _valueAtFromSynthetic(dir);
}