close method

  1. @override
void close()
override

Closes the modal.

Implementation

@override
void close() {
  if (!_isOpen) {
    return;
  }
  // _isOpen = false;

  toastUtils.instance.clear();
  if (context != null) {
    Navigator.pop(context!);
  }

  // notifyListeners();
}