Location class

Information about a location.

Constructors

Location({required double latitude, required double longitude, double? altitude, String? relevantText})
const
Location.fromJson(Map<String, Object?> json)
factory

Properties

altitude double?
Altitude, in meters, of the location.
final
hashCode int
The hash code for this object.
no setterinherited
latitude double
Latitude, in degrees, of the location.
final
longitude double
Longitude, in degrees, of the location.
final
relevantText String?
Text displayed on the lock screen when the pass is currently relevant. For example, a description of the nearby location such as “Store nearby on 1st and Main.”
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