TripEvent class

Constructors

TripEvent({required TripEventType type, required String tripId, required DateTime timestamp, Location? location, TripSummary? summary, double? distanceFromRouteMeters, bool? isMoving, String? message, JsonMap? data, int? waypointIndex})
const
TripEvent.diagnostic({required String tripId, required String message, JsonMap? data})
Creates a diagnostic event for internal trip engine issues.
factory
TripEvent.waypointReached({required String tripId, required int waypointIndex, required Location location})
Creates a waypoint reached event.
factory

Properties

data JsonMap?
final
distanceFromRouteMeters double?
final
hashCode int
The hash code for this object.
no setterinherited
isMoving bool?
final
location Location?
final
message String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
summary TripSummary?
final
timestamp DateTime
final
tripId String
final
type TripEventType
final
waypointIndex int?
Index of reached waypoint (present for waypointReached events).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() JsonMap
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited