AllowedValues constructor

const AllowedValues(
  1. Set values
)

Validator that checks if a value is within a set of allowed values.

Implementation

const AllowedValues(this.values);