PhysicalResourceProvider class Null safety

A dart:io based implementation of ResourceProvider.

Implemented types

Constructors

PhysicalResourceProvider({String? stateLocation})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
pathContext Context
Get the path context used by this resource provider.
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getFile(String path) File
Return a File that corresponds to the given path. [...]
override
getFolder(String path) Folder
Return a Folder that corresponds to the given path. [...]
override
getModificationTimes(List<Source> sources) Future<List<int?>>
Complete with a list of modification times for the given sources. [...]
@Deprecated('Not used by clients'), override
getResource(String path) Resource
Return the Resource that corresponds to the given path. [...]
override
getStateLocation(String pluginId) Folder?
Return the folder in which the plugin with the given pluginId can store state that will persist across sessions. The folder returned for a given id will not be returned for a different id, ensuring that plugins do not need to be concerned with file name collisions with other plugins, assuming that the plugin ids are unique. The plugin ids must be valid folder names.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Properties

INSTANCE PhysicalResourceProvider
final