createTipMessage method Null safety

Future<NIMResult<NIMMessage>> createTipMessage(
  1. {required String sessionId,
  2. required NIMSessionType sessionType}
)

Create a tip message.

Implementation

static Future<NIMResult<NIMMessage>> createTipMessage(
    {required String sessionId, required NIMSessionType sessionType}) async {
  var message = NIMMessage.tipEmptyMessage(
      sessionId: sessionId, sessionType: sessionType);
  return NimCore.instance.messageService._createMessage(message: message);
}