keysToFields method

List<Field> keysToFields(
  1. List<String> keys
)

Convert unique keys to fields.

Implementation

List<Field> keysToFields(List<String> keys) {
  List<Field> fields = [];

  for (String key in keys) {
    Field field = fieldsByKey[key]!;
    fields.add(field);
  }

  return fields;
}