primaryKeys property

List<FieldInfo> get primaryKeys

Get the primary key field(s).

Implementation

List<FieldInfo> get primaryKeys =>
    fields.values.where((f) => f.isId).toList();