on_widget_constructed

static Widget.on_widget_constructed(callback)[source]

Registers a callback to be called when a widget is constructed.

The callback must have the following signature: callback(widget)