ProviderMetadata<T> class

Define a Dart class called ProviderMetadata.

Constructors

ProviderMetadata({required T classType, String? name, Function? useFactory})
const

Properties

classType → T
The class type that must be created
final
hashCode int
The hash code for this object.
read-onlyinherited
name String?
Optional name to give to the provider instance
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
useFactory Function?
Function to create the provider by custom code
final

Methods

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