buildDefaultLabel method

Widget buildDefaultLabel(
  1. int index,
  2. String? label,
  3. Widget divider
)

Implementation

Widget buildDefaultLabel(int index, String? label, Widget divider) {
  final children = <Widget>[];

  if (index > 0) {
    children.add(divider);
  }

  children.add(Text((index + 1).toString()));

  if (label != null) {
    children.add(SizedBox(width: 10));
    children.add(Text(label));
  }

  return Row(children: children);
}