DangerZoneWarning constructor

DangerZoneWarning(
  1. bool isZoneStart,
  2. double distanceInMeters,
  3. DistanceType distanceType
)

Creates a new instance.

  • 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

DangerZoneWarning(this.isZoneStart, this.distanceInMeters, this.distanceType);