VroomVehicle constructor

const VroomVehicle({
  1. required int id,
  2. String profile = 'driving-car',
  3. String? description,
  4. Coordinate? start,
  5. int? startIndex,
  6. Coordinate? end,
  7. int? endIndex,
  8. List<int>? capacity,
  9. List<int>? skills,
  10. List<int>? timeWindow,
  11. List<VroomVehicleBreak>? breaks,
  12. double? speedFactor = 1,
  13. int? maxTasks,
  14. List<VroomVehicleStep>? steps,
})

Implementation

const VroomVehicle({
  required this.id,
  this.profile = 'driving-car',
  this.description,
  this.start,
  this.startIndex,
  this.end,
  this.endIndex,
  this.capacity,
  this.skills,
  this.timeWindow,
  this.breaks,
  this.speedFactor = 1,
  this.maxTasks,
  this.steps,
}) : assert(start != null || end != null);