StringCodec class Null safety

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

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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