nextInstruction property

String get nextInstruction

Implementation

String get nextInstruction {
  if (_currentRoute == null || _currentRoute!.steps.isEmpty) return '';
  if (_currentStepIndex >= _currentRoute!.steps.length - 1) return 'Arrive at destination';
  return _currentRoute!.steps[_currentStepIndex + 1].instruction;
}