getProperties<T extends Property> method
Retrieves all matching properties with the name propertyName
.
Optionally specify the type T
for not needing to cast yourself
Implementation
Iterable<T> getProperties<T extends Property>(final String propertyName) =>
properties.where((prop) => prop.name == propertyName).map((e) => e as T);