clear method

void clear()

Clear all dialogs from the stack.

Implementation

void clear() {
  if (_stack.isEmpty) return;
  setState(() {
    _stack.clear();
  });
}