IMessagePrototype<T extends Message> class abstract

Constructors

IMessagePrototype()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(Uint8List bytes) → T
convert bytes into Message object
encode(T message) Uint8List
convert message object into Uint8List
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validate(Uint8List bytes) bool
validate bytes to ensure that they are valid and will decode without any problem

Operators

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

Static Methods

definePrototype<T extends Message>(IMessagePrototype<T> prototype) → void
define new prototype for Message type in the MessagesPrototypes