Widget.image

void image(Image img)

Sets the widget's image.

Parameters

imgThe image to set, or null to clear
Image image()

Gets the widget's image.

Returns

The current image, or null if none