cancelMediaUploadOrDownload static method

dynamic cancelMediaUploadOrDownload({
  1. required String messageId,
})

Cancels a media upload or download operation.

The messageId parameter specifies the unique identifier of the message for which the media upload or download operation should be canceled.

Throws an exception if the operation fails or if the message ID is invalid.

Example:

  await Mirrorfly.cancelMediaUploadOrDownload(messageId: 'unique_message_id');

Implementation

static cancelMediaUploadOrDownload({required String messageId}) async {
  return FlyChatFlutterPlatform.instance
      .cancelMediaUploadOrDownload(messageId);
}