prepend9 method
Inserts nine elements at the beginning of the iterable.
Takes the specified elements and inserts them at the beginning of the iterable.
Example:
void main() {
final list = [9, 10, 11];
final result = list.prepend9(0, 1, 2, 3, 4, 5, 6, 7, 8);
// Result: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
}
Implementation
Iterable<T> prepend9(
T v1, T v2, T v3, T v4, T v5, T v6, T v7, T v8, T v9) sync* {
yield v1;
yield v2;
yield v3;
yield v4;
yield v5;
yield v6;
yield v7;
yield v8;
yield v9;
yield* this;
}