AdaptiveLayout constructor

const AdaptiveLayout({
  1. Key? key,
  2. Widget? phone,
  3. Widget? tablet,
  4. Widget? desktop,
  5. Widget? foldable,
  6. Widget? child,
})

Creates an AdaptiveLayout widget.

Implementation

const AdaptiveLayout({
  super.key,
  this.phone,
  this.tablet,
  this.desktop,
  this.foldable,
  this.child,
}) : assert(
       phone != null ||
           tablet != null ||
           desktop != null ||
           foldable != null ||
           child != null,
       'At least one widget must be provided',
     );