toKMBFromList static method
String
toKMBFromList(
- List list,
- String singularName,
- String pluralName, [
- NumberUnits unit = NumberUnits.auto,
Converts the length of a list to a formatted string with unit.
Example: (1, 2, 3
, 'item', 'items', Counter.kmb) -> '3 items'
Implementation
static String toKMBFromList(
List<dynamic> list,
String singularName,
String pluralName, [
NumberUnits unit = NumberUnits.auto,
]) {
return toKMB(list.length, singularName, pluralName, unit);
}