error method

Alert error()

Sets the alert to error type.

Implementation

Alert error() {
  _type = AlertType.error;
  return this;
}