goBack method Null safety
- int number
Go Steps back
Implementation
void goBack(int number) {
_position -= number;
if (_position < 0) {
_position = 0;
}
_checkEnded();
}
Go Steps back
void goBack(int number) {
_position -= number;
if (_position < 0) {
_position = 0;
}
_checkEnded();
}