replyMessage method Null safety

Future<NIMResult<void>> replyMessage(
  1. {required NIMMessage msg,
  2. required NIMMessage replyMsg,
  3. required bool resend}
)

Reply a message.
msg The message to be sent. It is constructed by {@link MessageBuilder}. replyMsg The message that was replied to resend Pass in "true" if the message needs to be resent after it fails to be sent, otherwise pass in "false". Future You can set the callback function. The callback function will be invoked only when the message is sent successfully. If errors occur, error codes will be returned.

Implementation

Future<NIMResult<void>> replyMessage(
    {required NIMMessage msg,
    required NIMMessage replyMsg,
    required bool resend}) async {
  return _platform.replyMessage(msg: msg, replyMsg: replyMsg, resend: resend);
}