copyWith method

  1. @override
IValidator copyWith({
  1. bool? nullable,
  2. bool? optional,
})
inherited

Implementation

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