Source
Map<String, ManagedAttributeDescription> get attributes => _attributes;
Source
set attributes(Map<String, ManagedAttributeDescription> m) { _attributes = m; _primaryKey = m.values .firstWhere((attrDesc) => attrDesc.isPrimaryKey, orElse: () => null) ?.name; }