isPrimaryKey property

bool get isPrimaryKey

Whether this column is a primary key.

Implementation

bool get isPrimaryKey => constraint?.toUpperCase() == 'PRIMARY KEY';