addUsersToBlacklist method Null safety

Future<void> addUsersToBlacklist(
  1. {required List<String>? usernameArray,
  2. String? appKey}
)

Implementation

Future<void> addUsersToBlacklist(
    {required List<String>? usernameArray, String? appKey}) async {
  await _channel.invokeMethod(
      'addUsersToBlacklist',
      {'usernameArray': usernameArray, 'appKey': appKey}
        ..removeWhere((key, value) => value == null));
  return;
}