LocationUpdate constructor
const
LocationUpdate({})
Creates a location update.
latitude and longitude are required.
timestampMs defaults to current time if not provided.
Implementation
const LocationUpdate({
required this.latitude,
required this.longitude,
this.altitude,
this.accuracy,
this.heading,
this.speed,
int? timestampMs,
}) : timestampMs = timestampMs ?? 0;