setup function

Widget setup(
  1. SetupCallback fn
)

Define a Setup-widget.

Implementation

Widget setup(SetupCallback fn) {
  final key = evalKey;
  final props = evalProps;
  final widget = SetupWidget(key: key, props: props, setup: fn);

  evalKey = null;
  evalProps = null;

  return widget;
}