isSilenceMember method Null safety

Future<bool> isSilenceMember(
  1. {@required String? groupId,
  2. @required String? username,
  3. String? appKey}
)

Implementation

Future<bool> isSilenceMember({
  @required String? groupId,
  @required String? username,
  String? appKey,
}) async {
  Map resJson = await _channel.invokeMethod(
      'isSilenceMember',
      {
        'groupId': groupId,
        'username': username,
        'appKey': appKey,
      }..removeWhere((key, value) => value == null));
  return resJson['isSilence'];
}