PropError.value constructor

PropError.value(
  1. dynamic invalidValue,
  2. String propName, [
  3. String message = ''
])

Create a new PropError that signifies the given propName is set to an invalidValue.

Implementation

PropError.value(this.invalidValue, this.propName, [this.message = ''])
  : prop2Name = null,
    _messagePrefix = invalidPrefix;