transferGroupOwner method Null safety

Future<void> transferGroupOwner(
  1. {required String? groupId,
  2. required String? username,
  3. String? appKey}
)

Implementation

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

  return;
}