joinUnit method

String joinUnit({
  1. Locale? locale,
})

Join a list in a locale-dependent manner using unit-based grouping.

Example: "A, B, C". See also Type.unit.

For more options, use Intl.listFormat directly.

Implementation

String joinUnit({Locale? locale}) => Intl(
  locale: locale,
).listFormat(const ListFormatOptions(type: Type.unit)).format(this);