primary method

Record? primary(
  1. Record key
)

Primary key search with the specified Record as the key.

Implementation

Record? primary(Record key){
  if(!_schema.hasPrimary){
    return null;
  }
  return _primaryKeyMap![key.primaryKey];
}