format method
Formats a list of tick values.
Implementation
@override
List<String> format(
List<D> tickValues,
Map<D, String> cache, {
num? stepSize,
}) =>
tickValues.map((value) {
// Try to use the cached formats first.
var formattedString = cache[value];
if (formattedString == null) {
formattedString = formatValue(value);
cache[value] = formattedString;
}
return formattedString;
}).toList();