matches method

bool matches(
  1. String? country
)

Implementation

bool matches(String? country) {
  final countries = _countries;
  if (countries == null) return true;
  final code = country?.trim().toUpperCase();
  final listed = code != null &&
      code.isNotEmpty &&
      countries.any((listed) => listed.toUpperCase() == code);
  return _inside ? listed : !listed;
}