JoinWithLastSeparatorOnIterableExtension extension
- on
Methods
-
joinWithLastSeparator(
{String separator = ', ', String lastSeparator = ' & '}) → String -
Joins the elements of the iterable into a single string with the given
separator
andlastSeparator
. ThelastSeparator
is used to join the last two elements of the iterable.