dispose method

void dispose()

Disposes resources used by the cache.

Closes the internal Dio client and calls dispose on the underlying platform-specific Cache implementation.

Implementation

void dispose() {
  _dio.close(force: true);
  _cache.dispose();
}