state property

CircuitState get state

Current state of the circuit.

Implementation

CircuitState get state {
  if (_state == CircuitState.open && _shouldReset()) {
    _state = CircuitState.halfOpen;
  }
  return _state;
}