AdaptiveBuilder constructor
const
AdaptiveBuilder({
- Key? key,
- Widget phone(
- BuildContext context,
- AdaptiveDeviceInfo info
- Widget tablet(
- BuildContext context,
- AdaptiveDeviceInfo info
- Widget desktop(
- BuildContext context,
- AdaptiveDeviceInfo info
- Widget foldable(
- BuildContext context,
- AdaptiveDeviceInfo info
- Widget builder(
- BuildContext context,
- AdaptiveDeviceInfo info
Creates an AdaptiveBuilder widget.
At least one of phone, tablet, desktop, foldable, or builder
must be provided.
Implementation
const AdaptiveBuilder({
super.key,
this.phone,
this.tablet,
this.desktop,
this.foldable,
this.builder,
}) : assert(
phone != null ||
tablet != null ||
desktop != null ||
foldable != null ||
builder != null,
'At least one builder must be provided',
);