ChainEvent class sealed

One event published by a node's event bus. Switch over the subtypes (BlockFinalized, BlockRejected, TxAdmitted, TxRemoved, UnknownEvent) exhaustively; UnknownEvent keeps a newer engine's event kinds readable.

Constructors

ChainEvent.fromJson(Map<String, Object?> json)
Decodes one JSON object from the engine's event stream.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String
The event kind as the engine names it, such as block_finalized.
no setter

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