joinLast method

String joinLast([
  1. String separator = '',
  2. String? last
])

It joins all elements of the list with one separator and for the last iteration a different separator.

Implementation

String joinLast([String separator = '', String? last]) =>
    fn.join<V>(this, separator, last);