labelForChild method
- 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';
}