exitGroup method Null safety

Future<void> exitGroup(
  1. {required String? id}
)

Implementation

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

  return;
}