isPending property

bool get isPending

Whether the agent is pending initialization.

Implementation

bool get isPending {
  if (_state == _AgentLifecycle.connecting) {
    return !_isBuffering;
  }
  if (_state == _AgentLifecycle.connected) {
    return switch (_agentState) {
      AgentState.idle || AgentState.initializing => true,
      _ => false,
    };
  }
  return false;
}