hide method

void hide()

Method to hide the dialog

Implementation

void hide() {
  if (_isOpen) {
    Navigator.of(context).pop();
    _isOpen = false;
  }
}