const IValidator({bool nullable = false, bool optional = false}) : isNullable = nullable, isOptional = optional;