OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 main() { | 5 main() { |
6 var list = [1] | 6 var list = [1] |
7 ..add(2) | 7 ..add(2) |
8 ..add(3) | 8 ..add(3) |
9 ..addAll([4, 5]); | 9 ..addAll([4, 5]); |
10 print(list); | 10 print(list); |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 print(list); | 23 print(list); |
24 | 24 |
25 list = [[1]] | 25 list = [[1]] |
26 ..first.last.toString() | 26 ..first.last.toString() |
27 ..first[0].toString() | 27 ..first[0].toString() |
28 ..[0].last.toString(); | 28 ..[0].last.toString(); |
29 | 29 |
30 print(list); | 30 print(list); |
31 } | 31 } |
OLD | NEW |