state property
Current state of the circuit.
Implementation
CircuitState get state {
if (_state == CircuitState.open && _shouldReset()) {
_state = CircuitState.halfOpen;
}
return _state;
}
Current state of the circuit.
CircuitState get state {
if (_state == CircuitState.open && _shouldReset()) {
_state = CircuitState.halfOpen;
}
return _state;
}