quotedAndCommaSeparatedWithOr property

String get quotedAndCommaSeparatedWithOr

Returns a comma-separated string with single quotes around each element and the last element preceded by 'or'.

Examples:

  • 'a', 'b' → "'a' or 'b'"
  • 'a', 'b', 'c' → "'a', 'b', or 'c'"

Implementation

String get quotedAndCommaSeparatedWithOr =>
    _formatWithConjunction('or', quoted: true);