DistanceType enum

Note: The distance types are being given for warnings at distances which can be configured via options specific for each warner.

These distances are defined based on the sdk.navigation.TimingProfile calculated based on the speed limit present at the driver's current location. Indicates the distance type for a warning.

Values

ahead → const DistanceType

The warning is given for the first time for a new warner data ahead. In case the distance to the warner data is 0, then a warning with distance type DistanceType.reached will also be given at the same moment.

passed → const DistanceType

The warning is given when a warner data was passed.

reached → const DistanceType

The warning is given when a warner data was reached. In case the distance to the warner data is 0 when the warning with distance type DistanceType.ahead is given, then a warning with distance type DistanceType.reached will be given at the same moment.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
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
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<DistanceType>
A constant List of the values in this enum, in order of their declaration.