init method
Implementation
@override
void init() {
if (_heartbeatTimer != null) return;
_heartbeatTimer = Timer.periodic(
Duration(seconds: interval),
(timer) => onPulse.broadcast(),
);
}
@override
void init() {
if (_heartbeatTimer != null) return;
_heartbeatTimer = Timer.periodic(
Duration(seconds: interval),
(timer) => onPulse.broadcast(),
);
}