dontWriteConstraints property

bool get dontWriteConstraints

Drift will write some table constraints automatically, for instance when you override primaryKey. You can turn this behavior off if you want to. This is intended to be used by generated code only.

Implementation

bool get dontWriteConstraints => false;