ProviderContext class abstract interface

Implementers
Available Extensions

Constructors

ProviderContext()

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

getUnsafe(Type type, {bool? watch}) → dynamic
Retrieves the value of the requested type and optionally watches for its change. Returned values are guaranteed to be of type type or valueNotFound when it isn't found. If watch is not set, implementation should perform an educated guess (e.g. based on whether it's called during a build). Exact meaning of "watching" depends on the implementation and may not be supported.
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

Constants

valueNotFound → const Object
Special value returned by ProviderContext.getUnsafe when the requested value can't be provided.