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
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