SetupFunction<T> typedef

SetupFunction<T> = Widget Function()

A function type that builds a widget.

This is the return type of the SetupWidget.setup method. The returned builder function is called on each rebuild triggered by reactive dependencies, while the setup function itself runs only once during widget creation.

The function takes no parameters and returns a Widget. All reactive state should be captured from the setup closure.

Implementation

typedef SetupFunction<T> = Widget Function();