OmnyEvent class sealed

Base type for every event emitted on the Hub's EventBus.

Events are immutable facts ("something happened"). The hierarchy is sealed so subscribers can switch exhaustively, and so the event aggregator and (future) websocket/SSE streaming can serialize them uniformly.

Implementers

Constructors

OmnyEvent.fromJson(Map<String, dynamic> json)
Decodes the JSON form produced by toJson.
factory

Properties

at → DateTime
When the event occurred (UTC).
final
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
A stable event type discriminator (used in JSON / streaming).
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
payload() → Map<String, dynamic>
Event-specific payload fields.
toJson() → Map<String, dynamic>
JSON form (type + payload).
toString() → String
A string representation of this object.
inherited

Operators

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