ProviderContainer class


ProviderContainer / Ref 実装

Constructors

ProviderContainer({List<Override> overrides = const [], List<ProviderObserver> observers = const []})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
コンテナ全体の破棄
getScope<T>(Scope<T> s) → T
Scopeの値を取得(未設定ならStateError)
invalidate<S>(ProviderBase<S> provider, {bool keepPrevious = true}) → void
---- invalidate / refresh ----
invoke<R, State>(Call<R, State> call) Future<R>
---- Mutation / Concurrency ----
listen<S>(ProviderBase<S> provider, void onData(S? previous, S next), {bool fireImmediately = false}) ProviderSubscription<S>
変更を購読(解除用Subscriptionを返す)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read<S>(ProviderBase<S> provider) → S
スナップショットを読み取る(Provider/AsyncProvider/MutationToken いずれでもOK)
refresh<T>(Provider<T> provider) → T
refreshValue<T>(AsyncProvider<T> provider, {bool keepPrevious = true}) Future<T>
toString() String
A string representation of this object.
inherited

Operators

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