joinNonNull method
Joins the non-null elements into a string with the given separator
.
Example:
Iterable<int?>? numbers = [1, 2, 3, null];
print(numbers.joinNonNull('-')); // Output: 1-2-3
Implementation
String joinNonNull([String separator = '']) => validate().join(separator);