copyWith method

  1. @override
IEskValidator copyWith({
  1. bool? nullable,
})
override

Creates a copy of the validator with the given parameters.

Implementation

@override
IEskValidator copyWith({bool? nullable}) {
  return EskValidator(
    _validator,
    nullable: nullable ?? isNullable,
  );
}