directoryAndroid static method
Provides the UpdateCenter directory in the application's documents directory for Android. Creates the directory if it doesn't exist.
Implementation
static Future<Directory> directoryAndroid() async {
Directory tempDir = await getApplicationCacheDirectory();
Directory updateDirectory = Directory('${tempDir.path}/UpdateCenter/');
if (!await updateDirectory.exists()) {
await updateDirectory.create(recursive: true);
}
return updateDirectory;
}