bool onSetAttribute(String name, Object value)

Callback used to accept or reject a value of an attribute when it is set. Return true to reject the value, and false to accept it.

Source

bool onSetAttribute(String name, Object value) => false;