normalCache property
Future<RootDirectory>
normalCache
Create a RootDirectory
set based on the app's documents directory
This is the recommended base, as the directory cannot be cleared by the OS without warning. To completely clear this directory, the user must manually clear ALL app data, not just app cache.
Construction via this method automatically calls RootManagement.createAsync before returning, so the caching directories will exist unless deleted using RootManagement.delete.
Implementation
static Future<RootDirectory> get normalCache async {
final RootDirectory returnable = RootDirectory.custom(
(await getApplicationDocumentsDirectory()) >> 'fmtc',
autoCreate: false,
);
await returnable.manage.createAsync();
return returnable;
}