TrackPoint class
Краткое описание
TrackPoint представляет собой объект трекинга местоположения водителя,
который используется в TrackingController.
Описание полей:
- id - уникальный идентификатор точки трекинга (опционально).
- lat - широта координаты.
- lng - долгота координаты.
- time - время фиксации местоположения.
- batteryLevel - уровень заряда батареи устройства (опционально).
Методы:
- fromJson - Создает объект
TrackPointиз JSON. - toJson - Преобразует объект
TrackPointв JSON.
- Mixed-in types
- Annotations
-
- @JsonSerializable()
Constructors
- TrackPoint({int? id, String? batteryLevel, required double lat, required double lng, required DateTime time})
-
TrackPoint.fromJson(Map<
String, dynamic> json) -
factory
Properties
- batteryLevel → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int?
-
final
- lat → double
-
final
- lng → double
-
final
- onConflict ↔ OnConflict?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- time → DateTime
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toGQLJson(
{bool includeIfNull = false}) → Map< String, dynamic> -
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited