downloadMedia method
This method is used to download the media using the message ID.
Implementation
@override
downloadMedia(String mid) async {
//mediaDownload
try {
await mirrorFlyMethodChannel
.invokeMethod('downloadMedia', {"mediaMessage_id": mid});
} on PlatformException catch (e) {
LogMessage.d("Platform Exception =", " $e");
rethrow;
} on Exception catch (error) {
LogMessage.d("Exception ", " $error");
rethrow;
}
}