Skip to content

Instantly share code, notes, and snippets.

@chalin
Created August 3, 2018 16:03
Show Gist options
  • Save chalin/f64e963cb5f894e2146c2b28d5efa4ed to your computer and use it in GitHub Desktop.
Save chalin/f64e963cb5f894e2146c2b28d5efa4ed to your computer and use it in GitHub Desktop.
Sound Dart example
void printInts(List<int> a) => print(a);
void main() {
var list = <int>[]; // Removing <int> results in a type error
list.add(1);
list.add(2);
printInts(list);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment