PRuleRequiredIf constructor
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"});