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})
Basic constructor

Properties

distance int
The distance between the users
getter/setter pair
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
getter/setter pair
watcher User
User that set the alert
getter/setter pair

Methods

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

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) ProximityAlertTriggered
Creates a object from a json