updateGroupAvatar method Null safety

Future<void> updateGroupAvatar(
  1. {required String? id,
  2. required String? imgPath}
)

Implementation

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