SchemaValidationError.enumViolated constructor

const SchemaValidationError.enumViolated(
  1. String value,
  2. List<String> possibleValues
)

Implementation

const SchemaValidationError.enumViolated(
    String value, List<String> possibleValues)
    : type = SchemaError.enumViolated,
      message = 'Wrong value: [$value] \n\n Possible values: $possibleValues';