DangerZoneWarning constructor

  1. @Deprecated("Will be removed in v4.29.0. Use the constructor without deprecated fields instead.")
DangerZoneWarning(
  1. int id,
  2. bool isZoneStart,
  3. double distanceInMeters,
  4. DistanceType distanceType,
)

Creates a new instance.

  • id Unique identifier for this specific danger zone warning instance. Each warning type (truck restrictions, speed warnings, etc.) maintains its own independent ID namespace. Use this ID to track, update, or dismiss individual warning instances of this type.
  • isZoneStart A flag indicating whether the Danger Zone officially start in the location the user is entering it.
  • distanceInMeters The distance from the current location to the Danger zone.
  • distanceType Indicates if the specified zone is ahead of the vehicle or has just passed by. If it is ahead, then DangerZoneWarning.distanceInMeters is greater than 0.

Implementation

@Deprecated("Will be removed in v4.29.0. Use the constructor without deprecated fields instead.")
DangerZoneWarning(this.id, this.isZoneStart, this.distanceInMeters, this.distanceType);