persistentStore function

ApiCacheStore persistentStore(
  1. String name
)

Android, iOS and desktop keep their answers as files under the application support directory, which the user does not browse.

Implementation

ApiCacheStore persistentStore(String name) => FileApiCacheStore.locatedBy(
      () => getApplicationSupportDirectory().then(
        (support) => Directory('${support.path}${Platform.pathSeparator}$name'),
      ),
    );