pathToUri method

  1. @override
Uri pathToUri(
  1. String path
)

Return the absolute URI that should be used to reference the file at the absolute path, or null if this resolver cannot reference this file. The file at that path is not required to exist.

Throws an ArgumentError if the path is not a valid path.

Implementation

@override
Uri pathToUri(String path) {
  return _provider.pathContext.toUri(path);
}