QueryEvent class

QueryEvent is emitted for every notable event that happens during a DHT query.

Constructors

QueryEvent({required PeerId id, required QueryEventType type, List<AddrInfo>? responses, String? extra})
Creates a new query event.

Properties

extra → String?
Extra information about this event.
final
hashCode → int
The hash code for this object.
no setterinherited
id → PeerId
The peer ID associated with this event.
final
responses → List<AddrInfo>?
Responses received, if any.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → QueryEventType
The type of this event.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Creates a JSON representation of this event.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) → QueryEvent
Creates a QueryEvent from a JSON representation.