BlocProviderError class
If the BlocProvider.of method fails, this error will be thrown.
Often, when the of
method fails, it is difficult to understand why since
there can be multiple causes. This error explains those causes so the user
can understand and fix the issue.
Constructors
- BlocProviderError(Type? type)
- Creates a BlocProviderError
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
The stack trace at the point where this error was first thrown.
no setterinherited
- type → Type?
-
The type of the class the user tried to retrieve
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited