TripConfig constructor
const
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 [],
})
Implementation
const TripConfig({
this.tripId,
this.startOnMoving = true,
this.startDistanceMeters = 50,
this.startSpeedKph = 5,
this.stopOnStationary = true,
this.stopTimeoutMinutes = 5,
this.stationarySpeedKph = 1.5,
this.updateIntervalSeconds = kDefaultUpdateIntervalSeconds,
this.dwellMinutes = 5,
this.route = const [],
this.routeDeviationThresholdMeters = kDefaultRouteDeviationThresholdMeters,
this.routeDeviationCooldownSeconds = kDefaultUpdateIntervalSeconds,
this.destination,
this.waypoints = const [],
});