@override bool accepts(Object? value) => value is String && (allowedValues == null || allowedValues!.contains(value));