getGroupInfo method Null safety

Future<JMGroupInfo> getGroupInfo(
  1. {required String? id}
)

Implementation

Future<JMGroupInfo> getGroupInfo({required String? id}) async {
  Map groupJson = await _channel.invokeMethod(
      'getGroupInfo', {'id': id}..removeWhere((key, value) => value == null));

  return JMGroupInfo.fromJson(groupJson);
}