FixedModelByIdBloc<I, T extends WithId<I> > class
A ModelByIdBloc that contains a fixed model.
Good for mocks, local synchronous file system reads, etc.
- Inheritance
-
- Object
- ModelByIdBloc<
I, T> - FixedModelByIdBloc
Constructors
- FixedModelByIdBloc({required T getter()})
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → I
-
finalinherited
- model ↔ T
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
states
→ Stream<
ModelByIdState< I, T> > -
no setterinherited
Methods
-
dispose(
) → Future< void> -
inherited
-
emitState(
ModelByIdState< I, T> state) → void -
inherited
-
emitStateIfChanged(
ModelByIdState< I, T> state) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reload(
) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited