visible property

  1. @override
set visible (bool visible)
override

Sets whether the popup should be shown.

If visible is not the current state, this may close or open the popup.

Implementation

@override
set visible(bool visible) {
  if (visible) {
    // If visibility is immediately true, we need to create the view and wait
    // for other Angular @Inputs to be processed before opening the popup.
    if (!_viewInitialized) {
      _initView();
      scheduleMicrotask(_open);
    } else {
      _open();
    }
  } else if (_viewInitialized) {
    _close();
  }
}