Message class
WebSocket message,
Constructors
- Message.bytes(Uint8List bytes)
-
Creates a Uint8List message.
factory
- Message.text(String text)
-
Creates a String message.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- raw → dynamic
-
Message raw data, Types: Uint8List or String
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bytes(
) → Uint8List - Returns the message bytes.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
text(
) → String - Returns the message text.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited