getProperty<P extends AbstractPropertyDescriptor> method

P getProperty<P extends AbstractPropertyDescriptor>(
  1. String name
)

return a named property. name the field name

Implementation

P getProperty<P extends AbstractPropertyDescriptor>(String name) {
  var property =  _properties[name];
  if ( property != null)
    return property as P;
  else
    throw Exception("unknown property $name");
}