OnMessage class

Event emitting channel when client receives a message (not including reply or ACK).

Constructors

OnMessage({required Uint8List? messageId, required String? data, required String? src, required int? type, required bool? encrypted, required bool? noReply})

Properties

data ↔ String?
Message data.
getter/setter pair
encrypted ↔ bool?
Whether message is encrypted.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
messageId ↔ Uint8List?
Message ID.
getter/setter pair
noReply ↔ bool?
Indicating no reply or ACK should be sent
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
src ↔ String?
Sender's NKN client address
getter/setter pair
type ↔ int?
Message data type.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reply(String data, {int maxHoldingSeconds = 0}) → Future<void>
toString() → String
A string representation of this object.
inherited

Operators

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