init method

  1. @override
void init()
override

Implementation

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