SetupBuilder constructor
const
SetupBuilder({
- Key? key,
- required WidgetFunction<
SetupBuilder> setup(),
Creates a SetupBuilder.
Parameters
- key: Optional widget key for controlling widget identity
- setup: A function that receives BuildContext and returns a WidgetFunction
The setup function is called once during widget creation and should return a builder function that constructs the widget tree on each rebuild.
Implementation
const SetupBuilder({
super.key,
required WidgetFunction<SetupBuilder> Function(BuildContext) setup,
}) : _setup = setup;