commaSeparatedWithOr property
String
get
commaSeparatedWithOr
Returns a comma-separated string with the last element preceded by 'or'.
Examples:
'a', 'b'→ "a or b"'a', 'b', 'c'→ "a, b, or c"
Implementation
String get commaSeparatedWithOr => _formatWithConjunction('or');