InvalidValueException<T>.withValue constructor

const InvalidValueException<T>.withValue(
  1. T? value,
  2. List<T>? validValues, [
  3. String? message
])

Creates a InvalidValueException object that includes the value that triggered this exception.

Implementation

const InvalidValueException.withValue(this.value, this.validValues,
    [this.message]);