buildChildrenWithFirstHeader static method
List<Widget>
buildChildrenWithFirstHeader(
- List<
Widget> children, - 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),
];
}