copyWith method

  1. @override
IValidator copyWith({
  1. bool? nullable,
  2. bool? optional,
})
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.');
}