TripConfig class

Constructors

TripConfig({String? tripId, bool startOnMoving = true, double startDistanceMeters = 50, double startSpeedKph = 5, bool stopOnStationary = true, int stopTimeoutMinutes = 5, double stationarySpeedKph = 1.5, int updateIntervalSeconds = kDefaultUpdateIntervalSeconds, int dwellMinutes = 5, List<RoutePoint> route = const [], double routeDeviationThresholdMeters = kDefaultRouteDeviationThresholdMeters, int routeDeviationCooldownSeconds = kDefaultUpdateIntervalSeconds, RoutePoint? destination, List<RoutePoint> waypoints = const []})
const
TripConfig.fromMap(JsonMap map)
factory

Properties

destination RoutePoint?
Destination point for the trip (optional).
final
dwellMinutes int
final
hashCode int
The hash code for this object.
no setterinherited
route List<RoutePoint>
final
routeDeviationCooldownSeconds int
final
routeDeviationThresholdMeters double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startDistanceMeters double
final
startOnMoving bool
final
startSpeedKph double
final
stationarySpeedKph double
final
stopOnStationary bool
final
stopTimeoutMinutes int
final
tripId String?
final
updateIntervalSeconds int
final
waypoints List<RoutePoint>
Waypoints to visit before destination (ordered).
final

Methods

copyWith({String? tripId, bool? startOnMoving, double? startDistanceMeters, double? startSpeedKph, bool? stopOnStationary, int? stopTimeoutMinutes, double? stationarySpeedKph, int? updateIntervalSeconds, int? dwellMinutes, List<RoutePoint>? route, double? routeDeviationThresholdMeters, int? routeDeviationCooldownSeconds, RoutePoint? destination, List<RoutePoint>? waypoints}) TripConfig
Creates a copy with modified values.
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