saveMessage method Null safety

Future<NIMResult<NIMMessage>> saveMessage(
  1. {required NIMMessage message,
  2. required String fromAccount}
)

Save a message.

Implementation

Future<NIMResult<NIMMessage>> saveMessage(
    {required NIMMessage message, required String fromAccount}) async {
  return _platform.saveMessage(message: message, fromAccount: fromAccount);
}