pick method

List pick(
  1. List<String> columns
)

Pick columns from the map entry value, based on the given columns as keys. The "dynamic" value is required to be a map, or at least respond to the [] operator with a String key.

Implementation

List pick(List<String> columns) =>
    List.generate(columns.length, (index) => value[columns[index]]);