hasConstraint method

bool hasConstraint(
  1. String constraint
)

Check if the column has a specific constraint

Returns true if the column has the specified constraint, false otherwise.

Implementation

bool hasConstraint(String constraint) {
  return _constraints.any((c) => c.toUpperCase().contains(constraint.toUpperCase()));
}