ResponsiveBuilder constructor

const ResponsiveBuilder({
  1. Key? key,
  2. Widget xs(
    1. BuildContext context,
    2. AdaptiveDeviceInfo info
    )?,
  3. Widget sm(
    1. BuildContext context,
    2. AdaptiveDeviceInfo info
    )?,
  4. Widget md(
    1. BuildContext context,
    2. AdaptiveDeviceInfo info
    )?,
  5. Widget lg(
    1. BuildContext context,
    2. AdaptiveDeviceInfo info
    )?,
  6. Widget xl(
    1. BuildContext context,
    2. AdaptiveDeviceInfo info
    )?,
  7. Widget builder(
    1. BuildContext context,
    2. AdaptiveDeviceInfo info
    )?,
})

Creates a ResponsiveBuilder widget.

Implementation

const ResponsiveBuilder({
  super.key,
  this.xs,
  this.sm,
  this.md,
  this.lg,
  this.xl,
  this.builder,
}) : assert(
       xs != null ||
           sm != null ||
           md != null ||
           lg != null ||
           xl != null ||
           builder != null,
       'At least one builder must be provided',
     );