GpsPoint class

Represents the most basic GPS location.

This excludes heading and accuracy information that is typically provided by GPS sensors).

Implementers

Constructors

GpsPoint({required GpsTime time, required double latitude, required double longitude, double? altitude})
Constant constructor, as modifying points while they're part of a collection could have bad effects in that collection's meta flags, like sorted state.
const

Properties

altitude double?
The altitude of the point, in meters (is not present for some data sources).
final
hashCode int
The hash code for this object.
no setteroverride
latitude double
The latitude of the point, in degrees.
final
longitude double
The longitude of the point, in degrees.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
time GpsTime
The time for the point record, measured in seconds since the epoch (1/1/1970 UTC).
final

Methods

copyWith({GpsTime? time, double? latitude, double? longitude, double? altitude}) GpsPoint
Create a copy of the point with optionally one or more of its fields set to new values.
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
Equality operator overload.
override

Static Properties

allZero GpsPoint
A point with all fields set to zero.
final
zeroOrNulls GpsPoint
A point with all fields set to null if possible, or to zero otherwise.
final