ApiCache constructor
ApiCache({
- ApiCacheStore? store,
- required Future<
String?> identity(), - Duration maxAge = const Duration(days: 30),
Implementation
ApiCache({
ApiCacheStore? store,
required Future<String?> Function() identity,
this.maxAge = const Duration(days: 30),
}) : _store = store ?? MemoryApiCacheStore(),
_identity = identity;