ProviderNullException class Null safety

Called Provider.of<T> instead of Provider.of<T?> but the provider returned null.

Implemented types

Constructors

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

Properties

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
valueType Type
The type of the value being retrieved
final
widgetType Type
The type of the Widget requesting the value
final

Methods

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

Operators

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