generateLabelForIndex function
Generates a header label given an axis
and a header index
.
See also:
numericLabelGenerator
andalphabetLabelGenerator
that are celled here for vertical and horizontal axis, respectively
Implementation
String generateLabelForIndex(Axis axis, int index) {
final generator = axis == Axis.horizontal
? _alphabetLabelGenerator
: _numericLabelGenerator;
return generator(index);
}