AutoDisposeProviderBase<Created, Listened> class Null safety

A base class for providers that destroy their state when no-longer listened.

See also:

Inheritance
Implementers

Constructors

AutoDisposeProviderBase(String? name)
A base class for providers that destroy their state when no-longer listened. [...]

Properties

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

Methods

create(covariant AutoDisposeProviderReference ref) → Created
override
createElement() AutoDisposeProviderElement<Created, Listened>
An internal method that defines how a provider behaves.
override
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. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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