setup abstract method

SetupFunction<T> setup(
  1. SetupBuildContext<T> context,
  2. PropsReadonlyNode<T> props
)

The setup function that runs once when the widget is created.

This function should return a WidgetBuilder that will be called on each rebuild. Use hooks like useSignal, useComputed, etc. to manage reactive state within this function.

Parameters:

  • context: The build context

Returns: A widget builder function

Implementation

SetupFunction<T> setup(
    SetupBuildContext<T> context, PropsReadonlyNode<T> props);