getStoredAnnotationsSize method
Get the size of stored annotations file in bytes
Implementation
Future<int> getStoredAnnotationsSize() async {
try {
final directory = await getApplicationDocumentsDirectory();
final file = File('${directory.path}/$_fileName');
if (await file.exists()) {
return await file.length();
}
return 0;
} catch (e) {
return 0;
}
}