Tells whether the instance is valid.
@override bool isValid(T instance) { return values.contains(instance) && super.isValid(instance); }