Skip to content

Instantly share code, notes, and snippets.

@marcinOz
Created June 5, 2019 19:12
Show Gist options
  • Save marcinOz/f288f7d69b40c33f83b0512fd2de9f77 to your computer and use it in GitHub Desktop.
Save marcinOz/f288f7d69b40c33f83b0512fd2de9f77 to your computer and use it in GitHub Desktop.
final s = ["d", "e", "f"];
final s2 = ["a", "b", "c", ...s];
print(s2); // [a, b, c, d, e, f]
var s;
final s2 = ["a", "b", "c", ...?s];
print(s2); // [a, b, c]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment