copyWith method
Implementation
@override
IValidator copyWith({bool? nullable, bool? optional}) {
return BaseBuilder<B, T>(
negated: negated,
chain: chain.copyWith(),
optional: optional ?? _optional,
nullable: nullable ?? _nullable,
);
}