strutAll function

List<Widget> strutAll(
  1. List<Widget> children,
  2. {double? width,
  3. double? height}
)

Implementation

@pragma("vm:prefer-inline")
List<Widget> strutAll(List<Widget> children,
    {double? width, double? height}) {
  List<Widget> result = <Widget>[];
  for (int i = 0; i < children.length; i++) {
    result.add(children[i]);
    if (i < children.length - 1) {
      result.add(SizedBox(width: width, height: height));
    }
  }
  return result;
}