getDocument method

Future<File?> getDocument(
  1. String docPath
)

Implementation

Future<File?> getDocument(String docPath) async {
  final doc = await readDoc(docPath.split('/').last);
  if (doc == null) throw Exception("no doc cached");
  // return null;
  // return Data!;
  return doc;
}