tabSemanticsLabel method
override
The accessibility label used on a tab in a CupertinoTabBar.
This message describes the index of the selected tab and how many tabs there are, e.g. 'tab, 1 of 2' in United States English.
tabIndex
and tabCount
must be greater than or equal to one.
Implementation
@override
String tabSemanticsLabel({ required int tabIndex, required int tabCount }) {
assert(tabIndex >= 1);
assert(tabCount >= 1);
final String template = tabSemanticsLabelRaw;
return template
.replaceFirst(r'$tabIndex', _decimalFormat.format(tabIndex))
.replaceFirst(r'$tabCount', _decimalFormat.format(tabCount));
}