stop method

void stop()

Stops the periodic internet connection check by cancelling the timer.

This method should be called to clean up resources when the internet connection check is no longer needed.

Implementation

void stop() async {
  _timer?.cancel();
}