PropError constructor

PropError(
  1. String propName, [
  2. String message = ''
])

Create a new PropError, with the given propName and optional message.

Implementation

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