stop method

  1. @override
Future<void> stop()

Stops the service and cancels the refresh timer.

Implementation

@override
Future<void> stop() async {
  _refreshTimer?.cancel();
  _refreshTimer = null;
  _started = false;
  if (_internalHttpClient) {
    _httpClient.close();
  }
}