ProviderContext class
Wraps a set of value providers and provides helper methods to access these.
- Implementers
Constructors
-
ProviderContext({Set<
Listenable> valueProviders = const {}}) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
valueProviders
→ Set<
Listenable> -
Getter for the value providers.
no setter
Methods
-
access<
T extends Listenable> () → T - Searches the set of providers for the one with the specific type.
-
exists<
T extends Listenable> () → bool - Checks whether the provider of a specific type exists within the set.
-
fetch<
T extends Listenable> () → T? - Searches the set of providers for the one with the specific type.
-
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