PropError.required constructor

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

Create a new PropError that signifies the given propName is required to be set.

See: requiredProp annotation

Implementation

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