IMessagePrototype<T extends Message> class
abstract
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