WearMessage class
Represents a message to be sent to or from a wearable device.
Constructors
- WearMessage({required String path, required Uint8List data, int? id, String? node})
- Constructor for WearMessage.
- WearMessage.fromJson(Map json)
-
Creates a WearMessage from a JSON object.
factory
- WearMessage.string(String path, String data, {String? node, int? id})
-
Creates a WearMessage from path and data string.
factory
Properties
- data → Uint8List
-
The data to be sent.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int?
-
The unique identifier of the message.
final
- node → String?
-
The node to which the message will be sent.
final
- path → String
-
The path of the message.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dataAsString(
) → String - Converts the data to a string using UTF-8 decoding.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts WearMessage to a JSON object.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited