PowerRouteStep constructor
PowerRouteStep({
- required String text,
- String? naturalText,
- String? voiceAnnouncement,
- required double distance,
- required double duration,
- required LatLng location,
- List<
PowerRouteVoiceInstruction> voiceInstructions = const [], - int? sign,
- String? streetName,
- String? streetRef,
- String? destination,
- ManeuverType maneuverType = ManeuverType.turn,
- ManeuverModifier modifier = ManeuverModifier.straight,
- int? roundaboutExit,
- 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);