Interface StateContext
public sealed interface StateContext
Responsible for maintaining widget state.
-
Method Summary
Modifier and TypeMethodDescription<W extends Widget>
WidgetInstance<W> getState
(WidgetInstance<?> parent, Key.CallSite key, W widget) Gets or instantiates a new element and configures it according to the provided widget.
-
Method Details
-
getState
Gets or instantiates a new element and configures it according to the provided widget.
Note: unless the key is a
GlobalKey
, elements are keyed by the parent key, thekey
, and the widget class.
-