close method

void close()

如果被调用了,对象将不可用

Implementation

void close() {
  if (!active) return;
  _closed = true;
  _observer?.close(this);
  _complete();
  onRemoveOverlayEntry();
  _controller?.dispose();
  _controller = null;
}