setIntervalAndResetTimer method
Updates the interval between connection checks to the given duration and
resets the connection checking timer.
Implementation
void setIntervalAndResetTimer(Duration duration) {
_checkInterval = duration;
_timerHandle?.cancel();
_timerHandle = Timer(_checkInterval, _maybeEmitStatusUpdate);
}