GpsPoint class Null safety

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
endTime → dynamic
The end time for the point measurement (same as time for GpsPoint, but may be overridden in subclasses if they implement staying in a position for some extended period of time).
read-only
hashCode int
The hash code for this object.
read-onlyoverride
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.
read-onlyinherited
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 non-existent 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