sendVoiceMessage method Null safety

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

Implementation

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