CrossCache constructor
CrossCache({
- Dio? dio,
- 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);