format method
Locale-dependant concatenation of lists.
import 'package:intl4x/list_format.dart';
void main() {
print(ListFormat.format(['Dog', 'Cat'])); // Prints 'Dog and Cat'
}
Implementation
String format(List<String> list) {
if (isInTest) {
return '${list.join(', ')}//${_listFormatImpl.locale}';
} else {
return _listFormatImpl.formatImpl(list);
}
}