Layout constructor
Layout({
- Key? key,
- required Widget builder(
- LayoutSize layoutSize,
- BuildContext context,
- BoxConstraints boxConstraints
Implementation
Layout({
super.key,
required Widget Function(LayoutSize layoutSize, BuildContext context,
BoxConstraints boxConstraints)
builder,
}) : super(
builder: (BuildContext context, BoxConstraints boxConstraints) =>
builder(boxConstraints.maxWidth.layoutSize, context,
boxConstraints));