ResponsiveWidget constructor

const ResponsiveWidget({
  1. required Widget s,
  2. Widget? m,
  3. Widget? l,
  4. Widget? xl,
  5. Key? key,
})

Constructs a ResponsiveWidget.

s is required and represents the widget to display on small screens. m, l, xl are optional and represent widgets to display on medium, large, and extra-large screens respectively.

Implementation

const ResponsiveWidget({
  required this.s,
  this.m,
  this.l,
  this.xl,
  super.key,
});