ProviderBase<State> class
abstract
ProviderBase
Base class for all providers.
- Implementers
- Available extensions
Constructors
- ProviderBase()
-
Creates a provider base instance.
const
Properties
- args → Record?
-
Arguments used to define provider identity for families.
no setter
- argument → Object?
-
Exposes args for Riverpod compatibility.
no setter
- autoDispose → bool
-
Whether to auto-dispose when there are no listeners.
no setter
- autoDisposeDelay → Duration
-
Delay before auto-disposal when unused.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → ProviderKey
-
Creates a key from the provider type and args.
no setter
- name → String?
-
Optional debug name for this provider.
no setter
-
notifier
→ Provider<
P> -
Available on P, provided by the ProviderOverrideCompat extension
Returns a provider that exposes the notifier/instance for this provider.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
overrideWith(
dynamic override) → ProviderOverride< S> -
Available on P, provided by the ProviderOverrideCompat extension
Creates an override for this provider using a compatible factory. -
overrideWithBuild(
S builder(Ref< S> ref, P notifier)) → ProviderOverride<S> -
Available on P, provided by the ProviderOverrideCompat extension
Creates an override that can access the original notifier. -
overrideWithValue(
S value) → ProviderOverride< S> -
Available on P, provided by the ProviderOverrideCompat extension
Creates an override that always returnsvalue. -
toString(
) → String -
Returns a debug-friendly string for this provider.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited