close method

void close()

Implementation

void close() {
  onClose?.call();
  Future.delayed(const Duration(seconds: 1), () {
    if (_localContext != null) {
      _localContext!.closeDialog;
      _localContext = null;
    }
  });
}