Provider<T> class


Provider<T>(同期)

Inheritance
Available extensions

Constructors

Provider(T builder(Ref<T> ref), {bool autoDispose = false, Duration autoDisposeDelay = Duration.zero, String? name})
Riverpod互換: Provider((ref) => value, autoDispose: ...)
Provider.args(Record? _args, {bool autoDispose = false, Duration autoDisposeDelay = Duration.zero, String? name})
サブクラス用: class X extends Provider<T>

Properties

args Record?
familyの等価性材料(==相当)。必要に応じてoverride。
no setteroverride
argument Object?
引数(Riverpod互換)。
no setterinherited
autoDispose bool
未購読で自動破棄するか
no setteroverride
autoDisposeDelay Duration
自動破棄の遅延
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
key ProviderKey
args+型名からKeyを生成
no setterinherited
name String?
デバッグ名(Riverpod互換)。
no setteroverride
notifier Provider<P>

Available on P, provided by the ProviderOverrideCompat extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(Ref<T> ref) → T
mutate<R>(MutationToken<R> token, Future<R> body(Ref<T> ref), {Concurrency concurrency = Concurrency.concurrent}) Call<R, T>
mutation<R>([Symbol? symbol]) MutationToken<R>
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

overrideWithBuild(S builder(Ref<S> ref, P notifier)) ProviderOverride<S>

Available on P, provided by the ProviderOverrideCompat extension

overrideWithValue(S value) ProviderOverride<S>

Available on P, provided by the ProviderOverrideCompat extension

run<R>(Future<R> body(Ref<T> ref)) Call<R, T>
toString() String
A string representation of this object.
inherited

Operators

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