BlocxTestEventHub class
In-memory test event hub with inspection and recording capabilities.
- Inheritance
-
- Object
- BlocxSimpleEventHub
- BlocxTestEventHub
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
recordedEvents
→ List<
BlocxAppEvent> -
All events recorded since creation or the last clearRecordedEvents.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearRecordedEvents(
) → void - Clears the recorded event history.
-
dispose(
) → void -
inherited
-
emit(
BlocxAppEvent event) → void -
override
-
emitEntities<
T extends BlocxBaseEntity> (List< T> entities, BlocxCommandType command, {BlocxEventOrigin? origin}) → void -
Emits a multi-entity command event.
inherited
-
emitEntity<
T extends BlocxBaseEntity> (T entity, BlocxCommandType command, {BlocxEventOrigin? origin}) → void -
Emits a single-entity command event.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
ofType<
T extends BlocxAppEvent> () → Stream< T> -
inherited
-
onEntity<
T extends BlocxBaseEntity> ({Iterable< BlocxCommandType> ? commands}) → Stream<BlocxEntityEvent< T> > -
Returns a stream of BlocxEntityEvent matching entity type
Tand optionalcommandsfilter.inherited -
recordedEntityEvents<
T extends BlocxBaseEntity> () → List< BlocxEntityEvent< T> > -
All recorded entity command events targeting entity type
T. -
recordedEventsOfType<
T extends BlocxAppEvent> () → List< T> -
All recorded events matching type
T. -
stream(
) → Stream< BlocxAppEvent> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited