nullable method

FormValidator nullable()

Mark this validator as nullable. When nullable, if the value is null or empty, validation will pass. If the value is not null/empty, all rules will be applied.

Implementation

FormValidator nullable() {
  _isNullable = true;
  return this;
}