sendMessage method Null safety
- {required NIMMessage message,
- bool resend = false}
Send a message.
If you need to update the sending progress, listen to onMessageStatus.
Listen to onAttachmentProgress if required, which represents the sending progress of the attachment.
Pass in the resend
parameter if you need to resend a message once it fails to be sent.
Implementation
Future<NIMResult<NIMMessage>> sendMessage(
{required NIMMessage message, bool resend = false}) async {
return _platform.sendMessage(message: message, resend: resend);
}