getPrimaryKeyValues static method

List<Object> getPrimaryKeyValues(
  1. List<String> primaryKeys,
  2. Map<String, Object?> values
)

Obtains the primary key values

Implementation

static List<Object> getPrimaryKeyValues(
  final List<String> primaryKeys,
  final Map<String, Object?> values,
) {
  return primaryKeys.mapNotNull((key) => values[key]).toList();
}