PRuleRequiredIf constructor

PRuleRequiredIf(
  1. String? _value,
  2. bool _ifRequired, {
  3. String message = "Required",
})

Check if the value is present if the condition is true value is the value to check ifRequired is the condition to check message is the error message

Implementation

PRuleRequiredIf(this._value, this._ifRequired, {this.message = "Required"});