ModelByIdBloc<I, T extends WithId<I> > class
abstract
- Implementers
Constructors
- ModelByIdBloc({required I id})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → I
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
states
→ Stream<
ModelByIdState< I, T> > -
no setter
Methods
-
dispose(
) → Future< void> -
emitState(
ModelByIdState< I, T> state) → void -
emitStateIfChanged(
ModelByIdState< I, T> state) → void -
get(
) → Future< T?> - Loads the model if it is not loaded yet, and returns it or null on error.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reload(
) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited