nullable<T> method

IValidator nullable<T>()

Creates a nullable copy of the validator.

Implementation

IValidator nullable<T>() {
  return copyWith(nullable: true);
}