ResponsiveBuilder constructor
const
ResponsiveBuilder({
- Key? key,
- Widget xs(
- BuildContext context,
- AdaptiveDeviceInfo info
- Widget sm(
- BuildContext context,
- AdaptiveDeviceInfo info
- Widget md(
- BuildContext context,
- AdaptiveDeviceInfo info
- Widget lg(
- BuildContext context,
- AdaptiveDeviceInfo info
- Widget xl(
- BuildContext context,
- AdaptiveDeviceInfo info
- Widget builder(
- BuildContext context,
- AdaptiveDeviceInfo info
Creates a ResponsiveBuilder widget.
Implementation
const ResponsiveBuilder({
super.key,
this.xs,
this.sm,
this.md,
this.lg,
this.xl,
this.builder,
}) : assert(
xs != null ||
sm != null ||
md != null ||
lg != null ||
xl != null ||
builder != null,
'At least one builder must be provided',
);