clear method

void clear()

Implementation

void clear() {
  while (_stack.isNotEmpty) {
    _stack.removeLast();
  }
}