OutgoingNearbyMessage<C extends NearbyMessageContent> class final

The message that will be sent from the current device.

Inheritance
Implemented types

Constructors

OutgoingNearbyMessage({required C content, required NearbyDeviceInfo receiver})
To send a message, in addition to content, you need to pass receiver to know to whom the message is addressed.
const

Properties

content → C
Model representing content to be sent or received
finalinherited
hashCode int
The hash code for this object.
no setteroverride
isValid bool
Checks if content is not empty
no setterinherited
receiver NearbyDeviceInfo
Data of the user to whom the message is addressed.
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
toJson() Map<String, dynamic>
Get Map from OutgoingNearbyMessage.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override