Interface StateContext


public sealed interface StateContext
Responsible for maintaining widget state.
  • Method Summary

    Modifier and Type
    Method
    Description
    <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

      <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.

      Note: unless the key is a GlobalKey, elements are keyed by the parent key, the key, and the widget class.