provider library

Classes

BuilderStateDelegate<T>
A StateDelegate that creates and dispose a value from functions. [...]
ChangeNotifierProvider<T extends ChangeNotifier>
Listens to a ChangeNotifier, expose it to its descendants and rebuilds dependents whenever the ChangeNotifier.notifyListeners is called. [...]
ChangeNotifierProxyProvider<T, R extends ChangeNotifier>
A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier from values obtained from other providers. [...]
ChangeNotifierProxyProvider2<T, T2, R extends ChangeNotifier>
A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier from values obtained from other providers. [...]
ChangeNotifierProxyProvider3<T, T2, T3, R extends ChangeNotifier>
A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier from values obtained from other providers. [...]
ChangeNotifierProxyProvider4<T, T2, T3, T4, R extends ChangeNotifier>
A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier from values obtained from other providers. [...]
ChangeNotifierProxyProvider5<T, T2, T3, T4, T5, R extends ChangeNotifier>
A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier from values obtained from other providers. [...]
ChangeNotifierProxyProvider6<T, T2, T3, T4, T5, T6, R extends ChangeNotifier>
A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier from values obtained from other providers. [...]
Consumer<T>
Obtain Provider<T> from its ancestors and pass its value to builder. [...]
Consumer2<A, B>
Obtain Provider<T> from its ancestors and pass its value to builder. [...]
Consumer3<A, B, C>
Obtain Provider<T> from its ancestors and pass its value to builder. [...]
Consumer4<A, B, C, D>
Obtain Provider<T> from its ancestors and pass its value to builder. [...]
Consumer5<A, B, C, D, E>
Obtain Provider<T> from its ancestors and pass its value to builder. [...]
Consumer6<A, B, C, D, E, F>
Obtain Provider<T> from its ancestors and pass its value to builder. [...]
DelegateWidget
A StatefulWidget that delegates its State implementation to a StateDelegate. [...]
FutureProvider<T>
Listens to a Future<T> and exposes T to its descendants. [...]
InheritedProvider<T>
A generic implementation of an InheritedWidget. [...]
ListenableProvider<T extends Listenable>
Listens to a Listenable, expose it to its descendants and rebuilds dependents whenever the listener emits an event. [...]
ListenableProxyProvider<T, R extends Listenable>
A variation of ListenableProvider that builds its value from values obtained from other providers. [...]
ListenableProxyProvider2<T, T2, R extends Listenable>
A variation of ListenableProvider that builds its value from values obtained from other providers. [...]
ListenableProxyProvider3<T, T2, T3, R extends Listenable>
A variation of ListenableProvider that builds its value from values obtained from other providers. [...]
ListenableProxyProvider4<T, T2, T3, T4, R extends Listenable>
A variation of ListenableProvider that builds its value from values obtained from other providers. [...]
ListenableProxyProvider5<T, T2, T3, T4, T5, R extends Listenable>
A variation of ListenableProvider that builds its value from values obtained from other providers. [...]
ListenableProxyProvider6<T, T2, T3, T4, T5, T6, R extends Listenable>
A variation of ListenableProvider that builds its value from values obtained from other providers. [...]
MultiProvider
A provider that merges multiple providers into a single linear widget tree. It is used to improve readability and reduce boilerplate code of having to nest multiple layers of providers. [...]
Provider<T>
A Provider that manages the lifecycle of the value it provides by delegating to a pair of ValueBuilder and Disposer. [...]
ProxyProvider<T, R>
A provider that builds a value based on other providers. [...]
ProxyProvider2<T, T2, R>
A provider that builds a value based on other providers. [...]
ProxyProvider3<T, T2, T3, R>
A provider that builds a value based on other providers. [...]
ProxyProvider4<T, T2, T3, T4, R>
A provider that builds a value based on other providers. [...]
ProxyProvider5<T, T2, T3, T4, T5, R>
A provider that builds a value based on other providers. [...]
ProxyProvider6<T, T2, T3, T4, T5, T6, R>
A provider that builds a value based on other providers. [...]
ProxyProviderElement
An Element that uses a ProxyProviderWidget as its configuration.
ProxyProviderState<T extends ProxyProviderWidget>
A State with an added life-cycle: didUpdateDependencies. [...]
ProxyProviderWidget
A StatefulWidget that uses ProxyProviderState as State.
Selector<A, S>
An equivalent to Consumer that can filter updates by selecting a limited amount of values and prevent rebuild if they don't change. [...]
Selector0<T>
A base class for custom Selector. [...]
Selector2<A, B, S>
An equivalent to Consumer that can filter updates by selecting a limited amount of values and prevent rebuild if they don't change. [...]
Selector3<A, B, C, S>
An equivalent to Consumer that can filter updates by selecting a limited amount of values and prevent rebuild if they don't change. [...]
Selector4<A, B, C, D, S>
An equivalent to Consumer that can filter updates by selecting a limited amount of values and prevent rebuild if they don't change. [...]
Selector5<A, B, C, D, E, S>
An equivalent to Consumer that can filter updates by selecting a limited amount of values and prevent rebuild if they don't change. [...]
Selector6<A, B, C, D, E, F, S>
An equivalent to Consumer that can filter updates by selecting a limited amount of values and prevent rebuild if they don't change. [...]
SingleChildCloneableWidget
A base class for providers so that MultiProvider can regroup them into a linear list.
SingleValueDelegate<T>
Stores an immutable value.
StateDelegate
The state of a DelegateWidget. [...]
StreamProvider<T>
Listens to a Stream<T> and exposes T to its descendants. [...]
ValueDelegateWidget<T>
A DelegateWidget that accepts only ValueStateDelegate as delegate. [...]
ValueListenableProvider<T>
Listens to a ValueListenable and expose its current value.
ValueStateDelegate<T>
A base class for StateDelegate that exposes a value of type T. [...]

Typedefs

Disposer<T>(BuildContext context, T value) → void
A function that disposes an object of type T. [...]
ErrorBuilder<T>(BuildContext context, Object error) → T
A callback used to build a valid value from an error. [...]
ProviderBuilder<R>(BuildContext context, R value, Widget child) Widget
ProxyProviderBuilder<T, R>(BuildContext context, T value, R previous) → R
ProxyProviderBuilder2<T, T2, R>(BuildContext context, T value, T2 value2, R previous) → R
ProxyProviderBuilder3<T, T2, T3, R>(BuildContext context, T value, T2 value2, T3 value3, R previous) → R
ProxyProviderBuilder4<T, T2, T3, T4, R>(BuildContext context, T value, T2 value2, T3 value3, T4 value4, R previous) → R
ProxyProviderBuilder5<T, T2, T3, T4, T5, R>(BuildContext context, T value, T2 value2, T3 value3, T4 value4, T5 value5, R previous) → R
ProxyProviderBuilder6<T, T2, T3, T4, T5, T6, R>(BuildContext context, T value, T2 value2, T3 value3, T4 value4, T5 value5, T6 value6, R previous) → R
UpdateShouldNotify<T>(T previous, T current) → bool
A function that returns true when the update from previous to current should notify listeners, if any. [...]
ValueBuilder<T>(BuildContext context) → T
A function that creates an object of type T. [...]

Exceptions / Errors

ProviderNotFoundError
The error that will be thrown if Provider.of<T> fails to find a Provider<T> as an ancestor of the BuildContext used.