getImageByPath static method
Implementation
static Future<Image?> getImageByPath(String path) async {
final bytes = Uint8List.fromList(await ReceiveWhatsappChat.methodChannel
.invokeMethod("getImage", <String, dynamic>{"data": path}));
final codec = await instantiateImageCodec(bytes);
final frameInfo = await codec.getNextFrame();
return frameInfo.image;
}