loadImageMobileByKey function
Loads an image by its sha1 key directly from the documents directory,
without needing to have stored the full path separately.
Implementation
Future<Uint8List?> loadImageMobileByKey(String key) async {
final dir = await getApplicationDocumentsDirectory();
return await loadImageMobile('${dir.path}/$key');
}