temporaryCache property
Future<RootDirectory>
temporaryCache
Create a RootDirectory
set based on the app's temporary directory
This should only be used when requested by a user, as the directory can be cleared by the OS without warning.
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 temporaryCache async {
final RootDirectory returnable = RootDirectory.custom(
(await getTemporaryDirectory()) >> 'fmtc',
autoCreate: false,
);
await returnable.manage.createAsync();
return returnable;
}