Returns all fields given a local or common field type name.
List<Field> fieldsByTypeName(String name) { return fields.where((element) => element.type.name == name).toList(); }