GenericDHTEvent class
GenericDHTEvent is a type that encapsulates an actual DHT event by carrying its raw JSON.
Context: the DHT event system is rather bespoke and a bit messy at the time, so until we unify/clean that up, this event bridges the gap. It should only be consumed for informational purposes.
EXPERIMENTAL: this will likely be removed if/when the DHT event types are hoisted to core, and the DHT event system is reconciled with the eventbus.
Constructors
- GenericDHTEvent.new({required String type, required RawJSON raw})
- Creates a new GenericDHTEvent.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- raw → RawJSON
-
Raw is the raw JSON representation of the event payload.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
Type is the type of the DHT event that occurred.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited