allowNull property

bool allowNull
read / write

null is allowed by default for every ConstraintValidator.

Set this to false to handle null values yourself.

Implementation

bool allowNull = true;