RoundTripParameters class
Round trip parameters
Constructors
- RoundTripParameters({required int range, RangeType rangeType = RangeType.defaultType, int randomSeed = 0})
- Creates a new instance of RoundTripParameters.
-
RoundTripParameters.fromJson(Map<
String, dynamic> json) -
Deserializes a JSON-compatible map to create an instance.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- randomSeed ↔ int
-
If set to 0, generate a random route; any other number, use it as the seed for deterministic randomness.
getter/setter pair
- range ↔ int
-
Approximate desired size of the roundtrip; meaning is the same as for the route ranges feature.
getter/setter pair
- rangeType ↔ 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.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes this instance to a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
covariant RoundTripParameters other) → bool -
The equality operator.
override