ResponsiveBuilder constructor

const ResponsiveBuilder({
  1. Key? key,
  2. required Widget builder(
    1. BuildContext context,
    2. BoxConstraints constraints,
    3. Orientation orientation
    ),
  3. double breakpointMobile = 600,
  4. double breakpointTablet = 992,
})

Constructs a ResponsiveBuilder widget.

The builder function is called to build the layout based on the device type, orientation, and constraints.

The breakpointMobile is the maximum width at which the device is considered a mobile device.

The breakpointTablet is the maximum width at which the device is considered a tablet device.

Implementation

const ResponsiveBuilder({
  Key? key,
  required this.builder,
  this.breakpointMobile = 600,
  this.breakpointTablet = 992,
}) : super(key: key);