ResponsiveWidget constructor

const ResponsiveWidget({
  1. Key? key,
  2. Widget? desktop,
  3. Widget? phone,
  4. Widget? tablet,
  5. Widget? watch,
  6. ScreenChangePoints? screenChangePoints,
})

Define a ResponsiveWidget class.

Implementation

const ResponsiveWidget({
  Key? key,
  this.desktop,
  this.phone,
  this.tablet,
  this.watch,
  this.screenChangePoints,
})  : assert(
        desktop != null || phone != null || tablet != null || watch != null,
        'At least one widget must not be null.',
      ),
      super(key: key);