primaryKeyField property

FieldElement get primaryKeyField

The FieldElement pointing to the primary key.

Implementation

FieldElement get primaryKeyField =>
    fields.firstWhere((f) => f.name == primaryKeyName);