show method

void show(
  1. BuildContext context
)

Implementation

void show(BuildContext context) {
  if (duration != null) {
    _timer = Timer(duration!, () {
      dismiss();
    });
  }

  Overlay.of(context).insert(this);
  _isShowing = true;
}