customSingleChildLayout method

Widget customSingleChildLayout({
  1. required SingleChildLayoutDelegate delegate,
  2. Key? key,
})

A widget that defers the layout of its single child to a delegate.

Implementation

Widget customSingleChildLayout({
  required SingleChildLayoutDelegate delegate,
  Key? key,
}) {
  return CustomSingleChildLayout(
    key: key,
    delegate: delegate,
    child: this,
  );
}