property method

ComponentPropertyDef? property(
  1. String name
)

The descriptor for name, accepting ComponentPropertyDef.formerNames.

Implementation

ComponentPropertyDef? property(String name) {
  for (final def in properties) {
    if (def.name == name || def.formerNames.contains(name)) return def;
  }
  return null;
}