RoadInfo constructor

RoadInfo({
  1. double? distance,
  2. double? duration,
  3. List<GeoPoint> route = const [],
  4. List<Instruction> instructions = const [],
})

Implementation

RoadInfo({
  this.distance,
  this.duration,
  this.route = const [],
  this.instructions = const [],
}) : _key = UniqueKey().toString();