hasStoredAnnotations method

Future<bool> hasStoredAnnotations()

Check if annotations file exists

Implementation

Future<bool> hasStoredAnnotations() async {
  try {
    final directory = await getApplicationDocumentsDirectory();
    final file = File('${directory.path}/$_fileName');
    return await file.exists();
  } catch (e) {
    return false;
  }
}