RootProvider<Created, Listened> class Null safety

A base class for non-scoped providers.

By making typing a parameter as RootProvider instead of ProviderBase, this excludes ScopedProvider – which may not be supported by your code due to its particular behavior.

Inheritance
Implementers

Constructors

RootProvider(String? name)
A base class for non-scoped providers.

Properties

argument Object?
If this provider was created with the .family modifier, argument is variable used.
read-onlyinherited
debugId String
A unique identifier for this provider, used by devtools to differentiate providers
latefinalinherited
from Family<dynamic, dynamic, dynamic, ProviderReference, RootProvider>?
If this provider was created with the .family modifier, from is the .family instance.
read-onlyinherited
hashCode int
The hash code for this object.
@nonVirtualread-onlyinherited
name String?
A custom label for providers.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

create(ProviderReference ref) → Created
inherited
createElement() ProviderElement<Created, Listened>
An internal method that defines how a provider behaves.
inherited
createState() → ProviderStateBase<Created, Listened>
An internal method that creates the state of a provider.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
select<Selected>(Selected selector(Listened value)) ProviderListenable<Selected>
Partially listen to a provider.
toString() String
A string representation of this object.
inherited

Operators

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