autoDismissable property

bool get autoDismissable

Implementation

bool get autoDismissable => _autoDismissable;
  1. @Input()
set autoDismissable (bool b)

Boolean indicating if the dismiss event be published.

Implementation

@Input()
set autoDismissable(bool b) {
  _autoDismissable = b;

  // If an event set autoDismissable to `true`, then we don't want the same
  // event to dismiss right away. Stop listening for events until we see a
  // appropriate event, or until the next event loop.
  _ignoreEvents = _autoDismissable;
  _dismissEvents.first.then(_listenForEvents);
  // Run the timer outside of Angular so that it doesn't trigger a new digest
  // cycle.
  _zone.runOutsideAngular(() => Timer.run(_listenForEvents));
}