Message class

The class Message data transmitted between two peers. it will contain Message.deviceId and Message.message

Constructors

Message(String deviceId, String message)
Message.fromJson(dynamic json)
factory

Properties

deviceId String
Sender's ID
final
hashCode int
The hash code for this object.
no setterinherited
message String
Data will be kept here, in text type
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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