uploadMedia method

  1. @override
Future<bool?> uploadMedia(
  1. String messageid
)
override

This method is used to start uploading a media file.

Implementation

@override
Future<bool?> uploadMedia(String messageid) async {
  bool? res;
  try {
    res = await mirrorFlyMethodChannel
        .invokeMethod<bool>('uploadMedia', {"messageid": messageid});
    return res;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}