labelForChild method

  1. @override
String labelForChild(
  1. int index
)
override

A short string to identify the child with the given index.

Used by debugDescribeChildren to label the children.

Implementation

@override
String labelForChild(int index) {
  if (index == 0) {
    return 'center child';
  }
  return 'child $index';
}