copyWith method
override
Creates a copy of the validator with the given parameters.
Implementation
@override
IValidator copyWith({bool? nullable, bool? optional}) {
throw Exception(
'copyWith not implemented for $runtimeType, as it defines properties that cannot be copied automaticaly.\n'
'Please create a new instance manually. Or override the "copyWith" method.');
}