fieldsByTypeName method

List<Field> fieldsByTypeName(
  1. String name
)

Returns all fields given a local or common field type name.

Implementation

List<Field> fieldsByTypeName(String name) {
  return fields.where((element) => element.type.name == name).toList();
}