mapKey<U> method Null safety

List<U> mapKey<U>(
  1. String key
)

Get the values of the map items at the specified key

Implementation

List<U> mapKey<U>(String key) {
  return map((Map<String, Object?> item) => item[key] as U).toList();
}