ResponsiveLayout constructor

const ResponsiveLayout({
  1. Key? key,
  2. Widget? xs,
  3. Widget? sm,
  4. Widget? md,
  5. Widget? lg,
  6. Widget? xl,
  7. Widget? child,
})

Creates a ResponsiveLayout widget.

Implementation

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