updateGroupInfo method Null safety

Future<void> updateGroupInfo(
  1. {required String? id,
  2. String? newName,
  3. String? newDesc}
)

Implementation

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

  return;
}