EntityFamily class final
Generated Riverpod family for a single normalized entity.
- Inheritance
-
- Object
- ProviderOrFamily
- Family
- EntityFamily
Properties
-
dependencies
→ Iterable<
ProviderOrFamily> ? -
The list of providers that this provider potentially depends on.
finalinherited
- from → Family
-
The family that this provider/family depends on.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAutoDispose → bool
-
Whether the state associated to this provider should be disposed
automatically when the provider stops being listened.
finalinherited
- name → String?
-
A custom label for providers.
finalinherited
- origin → Family
-
The provider that is overridden.
no setterinherited
- retry → Retry?
-
The retry strategy to use when a provider fails.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call<
T extends Object> ({required String type, required String? id, required EntityDecoder< T> fromGraph, EntityEncoder<T> ? toGraph, bool enabled = true, bool subscribe = true}) → EntityProvider<T> - Generated Riverpod family for a single normalized entity.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
overrideWith(
Entity< T> create<T extends Object>() ) → Override - Override the provider with a new initialization function.
-
overrideWithBuild(
FutureOr< EntitySnapshot< build<T> >T extends Object>(Ref ref, Entity< ) → OverrideT> notifier) -
Overrides the
buildmethod of a notifier, allowing you to replace the default implementation with a custom one for testing or specific use cases. -
toString(
) → String - A string representation of this object.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited