AutoDisposeBlocProviderFamily<B extends BlocBase<S> , S, Arg> class
A class that allows building a AutoDisposeBlocProvider from an external parameter.
AutoDisposeBlocProviderFamily.scoped
Creates an AutoDisposeBlocProvider that will be scoped and must be overridden. Otherwise, it will throw an UnimplementedProviderError.
Constructors
-
AutoDisposeBlocProviderFamily(B create(AutoDisposeBlocProviderRef<
B, S> ref, Arg arg), {String? name, Iterable<ProviderOrFamily> ? dependencies}) - The Family of AutoDisposeBlocProvider.
- AutoDisposeBlocProviderFamily.scoped(String name)
- AutoDisposeBlocProviderFamily.scoped
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
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
A custom label for providers.
finalinherited
-
overriddenFamily
→ Family<
S> -
The family that was overridden.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call(
Arg argument) → AutoDisposeBlocProvider< B, S> -
Create a provider from an external value.
inherited
-
getProviderOverride(
ProviderBase< S> provider) → ProviderBase<S> -
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(
B create(AutoDisposeBlocProviderRef< B, S> ref, Arg arg)) → Override -
overrideWithProvider(
AutoDisposeBlocProvider< B, S> 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