copyWith method
- bool? nullable,
- bool? optional,
- IValidator? condition,
- IValidator? then,
- IValidator? otherwise,
override
Implementation
@override
IValidator copyWith({
bool? nullable,
bool? optional,
IValidator? condition,
IValidator? then,
IValidator? otherwise,
}) =>
WhenValidator(
condition: condition ?? this.condition,
then: then ?? this.then,
otherwise: otherwise ?? this.otherwise,
nullable: nullable ?? isNullable,
optional: optional ?? isOptional,
);