Contents:
Widget
Registers a callback to be called when a widget is constructed.
The callback must have the following signature: callback(widget)