SetupBuilder constructor

const SetupBuilder({
  1. Key? key,
  2. required WidgetFunction<SetupBuilder> setup(
    1. BuildContext
    ),
})

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;