sendImageMessage method Null safety

Future<JMImageMessage> sendImageMessage(
  1. {required String? path,
  2. JMMessageSendOptions? sendOption,
  3. Map? extras}
)

Implementation

Future<JMImageMessage> sendImageMessage({
  required String? path,
  JMMessageSendOptions? sendOption,
  Map<dynamic, dynamic>? extras,
}) async {
  JMImageMessage msg = await JmessageFlutter().sendImageMessage(
    type: target.targetType,
    path: path,
    sendOption: sendOption,
    extras: extras,
  );
  return msg;
}