sendCustomMessage method Null safety

Future<JMCustomMessage> sendCustomMessage(
  1. {required Map? customObject,
  2. JMMessageSendOptions? sendOption,
  3. Map? extras}
)

Implementation

Future<JMCustomMessage> sendCustomMessage({
  required Map<dynamic, dynamic>? customObject,
  JMMessageSendOptions? sendOption,
  Map<dynamic, dynamic>? extras,
}) async {
  JMCustomMessage msg = await JmessageFlutter().sendCustomMessage(
    type: target.targetType,
    customObject: customObject,
    sendOption: sendOption,
    extras: extras,
  );
  return msg;
}