Layout constructor

Layout({
  1. Key? key,
  2. required Widget builder(
    1. LayoutSize layoutSize,
    2. BuildContext context,
    3. 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));