onVisible method

void onVisible(
  1. bool vis
)

Implementation

void onVisible(bool vis) {
  _visibleStream.add(vis);
  visible = vis;

  // Hide content after popup is closed.
  if (!vis) {
    _contentVisible.add(false);
  }
}