ConfigurableTaskProviderFamily<State extends TaskBase, Arg> class

A custom riverpod provider family for TaskBase classes that are configurable.

Besides of the standard family create functions, this provider also requires to specify the name of the task as first argument and a factory function that can convert a generic JSON/YAML-structure into the typed task configuration as second argument.

Annotations
  • @sealed

Constructors

ConfigurableTaskProviderFamily(String name, ArgFromJson<Arg> fromJson, State _createFn(ProviderRef<State> ref, Arg arg), {Iterable<ProviderOrFamily>? dependencies})
Default constructor

Properties

allTransitiveDependencies Set<ProviderOrFamily>?
All the dependencies of a provider and their dependencies too.
finalinherited
debugGetCreateSourceHash → DebugGetCreateSourceHash?
A debug-only fucntion for obtaining a hash of the source code of the initialization function.
finalinherited
dependencies Iterable<ProviderOrFamily>?
The list of providers that this provider potentially depends on.
finalinherited
from → Family<Object?>?
The family that this provider/family depends on.
no setterinherited
fromJson ArgFromJson<Arg>
The configuration factory
final
hashCode int
The hash code for this object.
no setterinherited
name String
A custom label for providers.
no setter
overriddenFamily → Family<State>
The family that was overridden.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(Arg argument) → Provider<State>
Create a provider from an external value.
inherited
getProviderOverride(ProviderBase<State> provider) → ProviderBase<State>
Obtains the new behavior for a provider associated to the overridden family.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overrideWith(State create(ProviderRef<State> ref, Arg arg)) → Override
Override the provider with a new initialization function.
inherited
overrideWithProvider(Provider<State> override(Arg argument)) → Override
Overrides the behavior of a family for a part of the application.
inherited
toString() String
A string representation of this object.
inherited

Operators

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