constraints property

List<ColumnConstraint> constraints

The column constraints set on this column.

This only works columns where hasDefinition is true, otherwise this getter will throw. The columns in a CREATE TABLE statement always have a definition, but those from a CREATE VIRTUAL TABLE likely don't.

See also:

Implementation

List<ColumnConstraint> get constraints => definition!.constraints;