InvalidValueException<T>.withValue  constructor 
Creates a InvalidValueException object that includes the value that triggered this exception.
Implementation
const InvalidValueException.withValue(this.value, this.validValues,
    [this.message]);