buildChildrenWithFirstHeader static method

  1. @visibleForTesting
List<Widget> buildChildrenWithFirstHeader(
  1. List<Widget> children,
  2. List<PreferredSizeWidget> headers
)

Implementation

@visibleForTesting
static List<Widget> buildChildrenWithFirstHeader(
  List<Widget> children,
  List<PreferredSizeWidget> headers,
) {
  return [
    Column(
      children: [
        headers[0],
        Expanded(child: children[0]),
      ],
    ),
    ...children.sublist(1),
  ];
}