CrossCache constructor

CrossCache({
  1. Dio? dio,
  2. BaseOptions? options,
})

Creates a CrossCache instance.

Takes an optional Dio instance. If not provided, a default one is created using the optional options.

Implementation

CrossCache({Dio? dio, this.options})
  : _cache = Cache(),
    _dio = dio ?? Dio(options);