RoundTripParameters constructor

RoundTripParameters({
  1. required int range,
  2. RangeType rangeType = RangeType.defaultType,
  3. int randomSeed = 0,
})

Creates a new instance of RoundTripParameters.

Parameters

  • range: Approximate desired size of the roundtrip; meaning is the same as for the route ranges feature.
  • rangeType: The units in which the range is expressed. Default means dependent on the route type like for Ranges. Other options are distance in meters and time in seconds.
  • randomSeed: If set to 0, generate a random route; any other number, use it as the seed for deterministic randomness.

Implementation

RoundTripParameters({
  required this.range,
  this.rangeType = RangeType.defaultType,
  this.randomSeed = 0,
});