sendMessage static method

Future<NIMResult<NIMMessage>> sendMessage({
  1. required NIMMessage message,
  2. bool resend = false,
})

发送消息

Implementation

static Future<NIMResult<NIMMessage>> sendMessage(
    {required NIMMessage message, bool resend = false}) {
  return NimCore.instance.messageService
      .sendMessage(message: message, resend: resend);
}