TripConfig constructor

const TripConfig({
  1. String? tripId,
  2. bool startOnMoving = true,
  3. double startDistanceMeters = 50,
  4. double startSpeedKph = 5,
  5. bool stopOnStationary = true,
  6. int stopTimeoutMinutes = 5,
  7. double stationarySpeedKph = 1.5,
  8. int updateIntervalSeconds = kDefaultUpdateIntervalSeconds,
  9. int dwellMinutes = 5,
  10. List<RoutePoint> route = const [],
  11. double routeDeviationThresholdMeters = kDefaultRouteDeviationThresholdMeters,
  12. int routeDeviationCooldownSeconds = kDefaultUpdateIntervalSeconds,
  13. RoutePoint? destination,
  14. 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 [],
});