sendTipMessage method Null safety

Future<NIMResult<NIMMessage>> sendTipMessage(
  1. {required String sessionId,
  2. required NIMSessionType sessionType,
  3. bool resend = false,
  4. MessageAction? action}
)

Send a tip message.

Implementation

Future<NIMResult<NIMMessage>> sendTipMessage({
  required String sessionId,
  required NIMSessionType sessionType,
  bool resend = false,
  MessageAction? action,
}) async {
  var message = NIMMessage.tipEmptyMessage(
      sessionId: sessionId, sessionType: sessionType);
  return _createMessageAndSend(message, action, resend);
}