swidget top-level constant Null safety

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,
);