FxResponsive constructor

const FxResponsive({
  1. required Widget mobile,
  2. required Widget desktop,
  3. Key? key,
  4. Widget? tablet,
})

Constructs a FxResponsive widget.

The mobile widget is rendered for screens below the tablet breakpoint. The desktop widget is rendered for screens above or equal to the desktop breakpoint. The tablet widget, if provided, is rendered for screens between the tablet and desktop breakpoints.

The key parameter is an optional key that can be used to identify and differentiate this widget.

Implementation

const FxResponsive({
  required this.mobile,
  required this.desktop,
  super.key,
  this.tablet,
});