Creates a new instance of the validator.
const TranslatedValidator({super.errorText, super.checkNullOrEmpty});