DevicePosition class

La posición de un dispositivo, tal como la devuelve el servicio.

Annotations
  • @immutable

Constructors

DevicePosition({required LatLng position, required DateTime sampleTime, String? deviceId, DateTime? receivedTime, double? horizontalAccuracyMeters, Map<String, String> properties = const <String, String>{}})
Crea la posición.
const
DevicePosition.fromJson(Map<String, dynamic> json)
Lee la posición de la respuesta del servicio.
factory

Properties

age Duration
Cuánto hace que se midió.
no setter
deviceId String?
Qué dispositivo era.
final
hashCode int
The hash code for this object.
no setterinherited
horizontalAccuracyMeters double?
La precisión horizontal declarada, en metros.
final
networkDelay Duration?
Cuánto tardó en llegar la posición desde que se midió.
no setter
position LatLng
Dónde estaba.
final
properties Map<String, String>
Las propiedades que viajaron con la posición.
final
receivedTime DateTime?
Cuándo lo recibió AWS.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleTime DateTime
Cuándo lo midió el GPS.
final

Methods

isFresh({Duration maxAge = const Duration(minutes: 5)}) bool
¿Es lo bastante reciente para tratarla como «dónde está ahora»?
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
The equality operator.
inherited