sendFileMessage method Null safety

Future<JMFileMessage> sendFileMessage(
  1. {required dynamic type,
  2. required String? path,
  3. JMMessageSendOptions? sendOption,
  4. Map? extras}
)

Implementation

Future<JMFileMessage> sendFileMessage({
  required dynamic type,

  /// (JMSingle | JMGroup | JMChatRoom)
  required String? path,
  JMMessageSendOptions? sendOption,
  Map<dynamic, dynamic>? extras,
}) async {
  JMFileMessage msg = await JmessageFlutter().sendFileMessage(
    type: target.targetType,
    path: path,
    sendOption: sendOption,
    extras: extras,
  );
  return msg;
}