sendUserMessageWithText method Null safety

UserMessage sendUserMessageWithText(
  1. String text,
  2. {OnUserMessageCallback? onCompleted}

Sends UserMessage on this channel with text.

It returns UserMessage with MessageSendingStatus.pending and onCompleted will be invoked once the message has been sent completely. Channel event ChannelEventHandler.onMessageReceived will be invoked on all other members' end.


UserMessage sendUserMessageWithText(
  String text, {
  OnUserMessageCallback? onCompleted,
}) {
  final params = UserMessageParams(message: text);
  return sendUserMessage(
    onCompleted: onCompleted,