spacerEvery property

List<Widget> get spacerEvery

Implementation

List<Widget> get spacerEvery {
  List<Widget> list = <Widget>[];
  forEachIndexed((index, element) {
    index == (length - 1)
        ? list.add(this[index])
        : list.addAll([this[index], const Spacer()]);
  });
  return list;
}