setConversationExtras method Null safety

Future<JMConversationInfo> setConversationExtras(
  1. {dynamic type,
  2. Map? extras}
)

Implementation

Future<JMConversationInfo> setConversationExtras(
    {dynamic type,

    /// (JMSingle | JMGroup | JMChatRoom)
    Map<dynamic, dynamic>? extras}) async {
  var param = type.toJson();
  param['extras'] = extras;
  Map resMap = await _channel.invokeMethod('setConversationExtras',
      param..removeWhere((key, value) => value == null));
  var res = JMConversationInfo.fromJson(resMap);
  return res; // {id: string; filePath: string}
}