LocalFileComparator constructor Null safety

LocalFileComparator(
  1. Uri testFile,
  2. {Style? pathStyle}
)

Creates a new LocalFileComparator for the specified testFile.

Golden file keys will be interpreted as file paths relative to the directory in which testFile resides.

The testFile URL must represent a file.

Implementation

LocalFileComparator(Uri testFile, {path.Style? pathStyle})
  : basedir = _getBasedir(testFile, pathStyle),
    _path = _getPath(pathStyle);