isForeignKey property

bool get isForeignKey

Whether this column is a foreign key.

Implementation

bool get isForeignKey => constraint?.toUpperCase() == 'FOREIGN KEY';