error method

void error()

Notify listeners to start the error animation

Implementation

void error() {
  if (_errorListener != null) _errorListener!();
}