dismiss method Null safety

void dismiss()

Dismisses the currently displayed alert (may not be the alert for which this object was created).

Throws NoSuchAlertException if there isn't currently an alert.

Implementation

void dismiss() {
  _client.send(_handler.alert.buildDismissRequest(),
      _handler.alert.parseDismissResponse);
}