joinAnd method

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

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

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

For more options, use Intl.listFormat directly.

Implementation

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