setLocalStoragePath static method
Future<void>
setLocalStoragePath(
)
Implementation
static Future<void> setLocalStoragePath() async {
try {
if(Platform.isIOS) {
localStoragePath = '${(await getLibraryDirectory()).path}/';
iosTempStoragePath = (await getLibraryDirectory()).path.replaceAll("Library", "tmp");
iosUFUFileStoragePath = '${(await getApplicationDocumentsDirectory()).path}/UFU_files/';
} else {
localStoragePath = '${(await getApplicationDocumentsDirectory()).path}/';
cacheStoragePath = '${(await getApplicationCacheDirectory()).path}/';
}
} catch (e) {
rethrow;
// UFUtils.recordError(e);
}
}