PowerRouteStep constructor

PowerRouteStep({
  1. required String text,
  2. String? naturalText,
  3. String? voiceAnnouncement,
  4. required double distance,
  5. required double duration,
  6. required LatLng location,
  7. List<PowerRouteVoiceInstruction> voiceInstructions = const [],
  8. int? sign,
  9. String? streetName,
  10. String? streetRef,
  11. String? destination,
  12. ManeuverType maneuverType = ManeuverType.turn,
  13. ManeuverModifier modifier = ManeuverModifier.straight,
  14. int? roundaboutExit,
  15. List<LaneInfo>? lanes,
})

Implementation

PowerRouteStep({
  required this.text,
  String? naturalText,
  String? voiceAnnouncement,
  required this.distance,
  required this.duration,
  required this.location,
  this.voiceInstructions = const [],
  this.sign,
  this.streetName,
  this.streetRef,
  this.destination,
  this.maneuverType = ManeuverType.turn,
  this.modifier = ManeuverModifier.straight,
  this.roundaboutExit,
  this.lanes,
}) : naturalText = naturalText ?? text,
     voiceAnnouncement = voiceAnnouncement ?? (naturalText ?? text);