ProviderNotFoundError class

The error that will be thrown if Provider.of<T> fails to find a Provider<T> as an ancestor of the BuildContext used.

Constructors

ProviderNotFoundError(Type valueType, Type widgetType)
Create a ProviderNotFound error with the type represented as a String.

Properties

valueType → Type
The type of the value being retrieved
final
widgetType → Type
The type of the Widget requesting the value
final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
stackTrace → StackTrace
read-only, inherited

Methods

toString() → String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited