CustomValidator<I> constructor
CustomValidator<I> ({})
Implementation
CustomValidator({
required _MessageBuilder<I> message,
required _Validator<I> isValid,
String? fieldName,
bool ignoreNullable = true,
}) : this.withMessage(
isValid: isValid,
ignoreNullable: ignoreNullable,
message: (value) => '${fieldName ?? 'Field'} ${message(value)}',
);