copyWith method

  1. @override
IValidator copyWith({
  1. bool? nullable,
  2. bool? optional,
  3. IValidator resolver(
    1. Map parentObject
    )?,
})
override

Implementation

@override
IValidator copyWith({
  bool? nullable,
  bool? optional,
  IValidator Function(Map parentObject)? resolver,
}) =>
    ResolveValidator(
      resolver: resolver ?? this.resolver,
      nullable: nullable ?? isNullable,
      optional: optional ?? isOptional,
    );