failed method

void failed(
  1. AgentFailure failure
)

Marks the agent as failed.

Implementation

void failed(AgentFailure failure) {
  _state = _AgentLifecycle.failed;
  _isBuffering = false;
  _error = failure;
  notifyListeners();
}