Snapshot<T> class

A snapshot of the state from the stream with the ability to send events to the Bloc

Constructors

Snapshot(T state, Future<void> sendEvent(BlocEvent event), void sendEventSync<Tb extends BlocEvent>(Tb event))
Creates a snapshot

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendEvent Future<void> Function(BlocEvent event)
Send an async event to the bloc
final
sendEventSync → void Function<Tb extends BlocEvent>(Tb event)
Send a synchronous event to the bloc
final
state → T
The current state of the bloc
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited