goBack method Null safety

void goBack (
  1. int number
)

Go Steps back

Implementation

void goBack(int number) {
  _position -= number;
  if (_position < 0) {
    _position = 0;
  }
  _checkEnded();
}