ResourceManager class

Manages fetching and disposing of a group of Resources.

This is an internal only API which should only be used by build system implementations and not general end users. Instead end users should use the buildStep#fetchResource method to get Resources.

Constructors

ResourceManager()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

beforeExit() Future<void>
Invokes the beforeExit callbacks of all Resources that had one.
disposeAll() Future<void>
Disposes of all Resources fetched since the last call to disposeAll.
fetch<T>(Resource<T> resource) Future<T>
Fetches an instance of resource.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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