swidget top-level constant
FunctionalWidget
const swidget
A decorator for functions to generate a StatelessWidget
.
The name of the generated widget is the name of the decorated function, with an uppercase as first letter.
Implementation
const FunctionalWidget swidget = FunctionalWidget(
widgetType: FunctionalWidgetType.stateless,
);