OnMessage class Null safety

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})

Properties

data String?
Message data.
read / write
encrypted bool?
Whether message is encrypted.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
messageId Uint8List
Message ID.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
src String?
Sender's NKN client address
read / write
type int?
Message data type.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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