getProperty method
Returns the first property whose InspectableProperty.name matches
name, or null if no such property exists.
Implementation
InspectableProperty? getProperty(String name) {
for (var property in properties) {
if (property.name == name) {
return property;
}
}
return null;
}