ReceivedNearbyMessage<C extends NearbyMessageContent> class final

Message received by the current device.

Inheritance
Implemented types

Constructors

ReceivedNearbyMessage({required C content, required NearbyDeviceInfo sender})
The received message contains a sender in addition to content, to know from whom the message came.
const
ReceivedNearbyMessage.fromJson(Map<String, dynamic>? json)
Get ReceivedNearbyMessage from Map.
factory

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
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sender NearbyDeviceInfo
Data of the user from whom the message came.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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