uri property Null safety
Returns a Uri representing the file system entity's location.
The returned URI's scheme is always "file" if the entity's path is absolute, otherwise the scheme will be empty.
Implementation
Uri get uri => new Uri.file(path);