Additional methods that can be defined for the widget plugin.
Rest
...params: any[] | undefined[]Called before a widget is drawn.
The widget to be drawn.
The canvas on which the widget will be drawn.
Called before a widget is initialized.
The widget to be initialized.
The CanvasKit instance.
Called after a widget is drawn.
The widget that has been drawn.
The canvas on which the widget was drawn.
Called after a widget is initialized.
The widget that has been initialized.
The CanvasKit instance.
Called before a widget's properties are updated.
The widget whose properties are being updated.
The CanvasKit instance.
The name of the property that has changed.
The WidgetPlugin interface represents a plugin that can be used with a widget. It provides a set of lifecycle methods that can be implemented to hook into different stages of a widget's lifecycle.