blockGroupMessage method Null safety

Future<void> blockGroupMessage(
  1. {required String? id,
  2. required bool? isBlock}
)

Implementation

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