stepBack method

bool stepBack()

Removes last line.

Implementation

bool stepBack() {
  assert(!hasActivePath);

  if (_paths.isNotEmpty) {
    _paths.removeLast();
    notifyListeners();

    return true;
  }

  return false;
}