Constraint.isRequired

bool isRequired() nothrow

Checks whether the constraint is a required relation for solving the constraint layout.

Returns

true if the constraint is required