MessagesPrototypes class

Constructors

MessagesPrototypes()

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

decodeBytes(Uint8List bytes) Message?
try to decode bytes into Message object
decodeBytesUsingPrototype<T extends Message>(Uint8List bytes) → T?
try to decode bytes into Message object of type T
definePrototype<T extends Message>(IMessagePrototype<T> prototype) → void
define new prototype for message of type T
encodeMessage<T extends Message>(T message) Uint8List?
try to encode message of type T
findPrototype(Uint8List data) IMessagePrototype<Message>?
find prototype that can handle data
findPrototypeByMessageType<T extends Message>() IMessagePrototype<T>?
find prototype that defined for message type T
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance MessagesPrototypes
get instance of MessagesPrototypes
no setter