getImage method
Implementation
Future<Uint8List?> getImage(String key) async {
final res = await promiseToFutureAsMap(
jsInvokeMethod("getImage", key, null),
);
if (res == null) throw Exception("no data recived from js");
if (res["error"] != null) throw Exception(res["error"]);
return res["result"];
}