start method

void start()

Starts the periodic timer (no-op when interval is zero or already running).

Implementation

void start() {
  if (interval <= Duration.zero || _timer != null) return;
  _timer = Timer.periodic(interval, (_) async {
    final report = await service.sweep();
    onSweep?.call(report);
  });
}