sendTextMessage method Null safety
- {required String sessionId,
- required NIMSessionType sessionType,
- required String text,
- bool resend = false,
- MessageAction? action}
Send a text message.
Implementation
Future<NIMResult<NIMMessage>> sendTextMessage({
required String sessionId,
required NIMSessionType sessionType,
required String text,
bool resend = false,
MessageAction? action,
}) async {
final message = NIMMessage.textEmptyMessage(
sessionId: sessionId, sessionType: sessionType, text: text);
return _createMessageAndSend(message, action, resend);
}