cancel method

void cancel([
  1. T? data,
  2. bool withAnime = true
])

Implementation

void cancel([T? data, bool withAnime = true]) {
  _withAnime = withAnime;
  _overlayEntry?.remove();
  if (!_completer.isCompleted) _completer.complete(data);
  _data = data;
}