BlockEvent class
BlockEvent represents the addition or removal of a BlockIdentifier from storage. Streaming BlockEvents allows lightweight clients to update their own state without needing to implement their own syncing logic.
- Annotations
-
- @immutable
Constructors
- BlockEvent(int sequence, BlockIdentifier blockIdentifier, String type)
-
const
-
BlockEvent.fromJson(Map<
String, dynamic> map) -
factory
Properties
- blockIdentifier → BlockIdentifier
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sequence → int
-
sequence is the unique identifier of a BlockEvent
within the context of a NetworkIdentifier.
final
- type → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited