format method
Locale-dependant concatenation of lists, for example in en-US
locale:
format(['A', 'B', 'C']) == 'A, B, and C'
Implementation
String format(List<String> list) {
if (isInTest) {
return '${list.join(', ')}//${_listFormatImpl.locale}';
} else {
return _listFormatImpl.formatImpl(list);
}
}