joinOr method

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

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

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

For more options, use Intl.listFormat directly.

Implementation

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