concat3 method
Concatenates this iterable and three another iterables.
Appends the values of three given Iterables to the end of this iterable, resulting in an iterable that is the concatenation of all of them.
Example:
void main() {
final list = [0, 1];
final result = list.concat3(
[2, 3],
[4, 5],
[6, 7],
);
// Result: [0, 1, 2, 3, 4, 5, 6, 7]
}
Implementation
Iterable<T> concat3(
Iterable<T> c1,
Iterable<T> c2,
Iterable<T> c3,
) {
return followedBy(c1).followedBy(c2).followedBy(c3);
}