toLocalizedText method
Localized instruction text.
Implementation
String toLocalizedText() {
switch (type) {
case NiceNavigationInstructionType.straight:
return 'Idź prosto ${_formatDistance(distance)}';
case NiceNavigationInstructionType.left:
return 'Skręć w lewo${landmark != null ? ' przy $landmark' : ''}';
case NiceNavigationInstructionType.right:
return 'Skręć w prawo${landmark != null ? ' przy $landmark' : ''}';
case NiceNavigationInstructionType.elevator:
return 'Wjedź windą';
case NiceNavigationInstructionType.stairs:
return 'Idź schodami';
case NiceNavigationInstructionType.arrive:
return 'Dotarłeś do celu';
}
}