ReduxProvider<N extends ReduxNotifier<T> , T> class
Redux
Holds a ReduxNotifier
- Implemented types
- Available extensions
Constructors
-
ReduxProvider(N builder(Ref ref), {ProviderChangedCallback<
T> ? onChanged, String? debugLabel, bool debugVisibleInGraph = true})
Properties
- customDebugLabel → String?
-
A custom label used by debug tools.
finalinherited
- debugLabel → String
-
A label to be used in debug messages and
by the
RefenaTracingPage.no setterinherited - debugVisibleInGraph → bool
-
Set this flag to false to hide the provider from the
RefenaGraphPage. By default, all providers are visible in the graph. However, some providers add unnecessary noise.finalinherited - hashCode → int
-
The hash code for this object.
no setterinherited
-
provider
→ BaseProvider<
N, T> -
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getActualProvider(
BaseNotifier< Object?> notifier) → ReduxProvider<N, T> -
inherited
-
getSelectedState(
N notifier, T state) → T -
The default behavior to return the whole state when
using
ref.watch(provider).inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
overrideWithGlobalReducer(
{required Map< Type, MockGlobalReducer?> reducer}) → ProviderOverride<GlobalRedux, void> -
Available on ReduxProvider<
A special override for global actions.GlobalRedux, void> , provided by the GlobalReduxNotifierOverrideExt extension -
overrideWithInitialState(
{N notifier(Ref ref)?, required T? initialState}) → ProviderOverride< N, T> -
Available on ReduxProvider<
Overrides the initial state with the givenN, T> , provided by the ReduxNotifierOverrideExt extensioninitialState. -
overrideWithNotifier(
N builder(Ref ref)) → ProviderOverride< N, T> - Overrides with a predefined notifier.
-
overrideWithReducer(
{N notifier(Ref ref)?, T? initialState, required Map< Type, MockReducer< reducer}) → ProviderOverride<T> ?>N, T> -
Available on ReduxProvider<
Overrides the reducer with the givenN, T> , provided by the ReduxNotifierOverrideExt extensionoverrides. -
select<
R> (R selector(T state)) → SelectedWatchable< N, T, R> -
Used for ref.watch(provider.select(...)).
Select a part of the state.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
Subclasses should not override this method.
It is used internally by RefenaContainer to map a provider to a state.
inherited