passes method
Validates the value using the given context.
Returns true if valid, otherwise false.
Implementation
@override
FutureOr<bool> passes(ValidationContext context) {
final value = context.value;
final args = context.parameters;
if (value == null || args.isEmpty) return false;
if (value is! List) return false;
final allowed = args.toSet();
// Check if every item in value is in allowed
return value.every((item) => allowed.contains(item.toString()));
}