NextSpeedLimit constructor

NextSpeedLimit({
  1. required Coordinates coords,
  2. required int distance,
  3. required double speed,
})

Creates a NextSpeedLimit instance.

API consumers should not call this constructor directly.

Parameters

  • coords: Coordinates where the next speed limit begins.
  • distance: Distance (in meters) to the next speed limit change.
  • speed: Next speed limit value.

Implementation

NextSpeedLimit({
  required this.coords,
  required this.distance,
  required this.speed,
});