BackgroundComposer extension type

A composer for setting the default background of a use case.

on

Methods

color(Color color) → void
Sets the default background for the use case to a given color.
colorBuilder(Color colorBuilder(BuildContext context)) → void
Sets the default background for the use case to a color that is built using the given colorBuilder. This allows you to use for example theme colors using the provided BuildContext.
named(String name) → void
Sets the default background for the use case to one of the BackgroundAddon.backgroundOptions listed in the BackgroundAddon including the ones included by default.
widget(Widget widget) → void
Sets the default background for the use case to a given widget.
widgetBuilder(WidgetBuilder widgetBuilder) → void
Sets the default background for the use case to a widget that is built using the given widgetBuilder. This allows you to use for example theme colors using the provided BuildContext.