ProximityAlertTriggered class

This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.

Constructors

ProximityAlertTriggered({required User traveler, required User watcher, required int distance})
Constructs a ProximityAlertTriggered object
const
ProximityAlertTriggered.fromJson(Map<String, dynamic> json)
Creates a ProximityAlertTriggered object from JSON object
factory

Properties

distance int
The distance between the users
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
traveler User
User that triggered the alert
final
watcher User
User that set the alert
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a ProximityAlertTriggered object to JSON object
toString() String
A string representation of this object.
inherited

Operators

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