setProperty method

  1. @override
void setProperty(
  1. dynamic prop,
  2. dynamic val
)
override

update a property. If this is a HasController (i.e. Widget), notify it of changes

Implementation

@override
void setProperty(prop, val) {
  Function? func = setters()[prop];
  if (func != null) {
    func(val);
    widgetController.notifyListeners();
  } else {
    throw InvalidPropertyException("Settable property '$prop' not found.");
  }
}