OptionalBuilder function

List<Widget> OptionalBuilder(
  1. BuildContext context, {
  2. WidgetBuilder? mobile,
  3. WidgetBuilder? tablet,
  4. WidgetBuilder? desktop,
  5. WidgetListBuilder? desktops,
})

Does runtime analysis to determine whether to build any of the provided widgets.

Implementation

List<Widget> OptionalBuilder(
  BuildContext context, {
  WidgetBuilder? mobile,
  WidgetBuilder? tablet,
  WidgetBuilder? desktop,
  WidgetListBuilder? desktops,
}) =>
    ResponsiveList<Widget>(
      context,
      mobile: mobile,
      desktop: desktop,
      tablet: tablet,
      desktops: desktops,
    );