visible property

  1. @override
bool get visible
override

Whether the modal is visible in the DOM.

NOTE: It is possible it is temporarily hidden if another modal has taken over but still reports true for visible.

Implementation

@override
bool get visible => _isVisible;
  1. @Input()
set visible (bool visible)

Implementation

@Input()
set visible(bool visible) {
  if (_isVisible == visible || _isDestroyed) return;
  if (visible == true) {
    open();
  } else {
    close();
  }
}