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