isRequired method

bool isRequired ()

Gets a flag that always requires non-null values. For null values it raises a validation error.

Returns true to always require non-null values and false to allow null values.