StringCodec class

MessageCodec with UTF-8 encoded String messages.

On Android, messages will be represented using java.util.String. On iOS, messages will be represented using NSString.

Implemented types

Constructors

StringCodec.new()
Creates a MessageCodec with UTF-8 encoded String messages.
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

decodeMessage(ByteData? message) → String?
Decodes the specified message from binary.
override
encodeMessage(String? message) → ByteData?
Encodes the specified message in binary.
override
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