| OLD | NEW |
| 1 // TODO(jmesserly): remove this once we have a subclassable growable list | 1 // TODO(jmesserly): remove this once we have a subclassable growable list |
| 2 // in our libraries. | 2 // in our libraries. |
| 3 | 3 |
| 4 /** A [List] proxy that you can subclass. */ | 4 /** A [List] proxy that you can subclass. */ |
| 5 #library('list_proxy'); | 5 #library('list_proxy'); |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * A [List<T>] proxy that you can subclass. | 8 * A [List<T>] proxy that you can subclass. |
| 9 */ | 9 */ |
| 10 class ListProxy<T> implements List<T> { | 10 class ListProxy<T> implements List<T> { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 void clear() { _list.clear(); } | 47 void clear() { _list.clear(); } |
| 48 T removeLast() => _list.removeLast(); | 48 T removeLast() => _list.removeLast(); |
| 49 void setRange(int start, int length, List<T> from, [int startFrom]) { | 49 void setRange(int start, int length, List<T> from, [int startFrom]) { |
| 50 _list.setRange(start, length, from, startFrom); | 50 _list.setRange(start, length, from, startFrom); |
| 51 } | 51 } |
| 52 void removeRange(int start, int length) { _list.removeRange(start, length); } | 52 void removeRange(int start, int length) { _list.removeRange(start, length); } |
| 53 void insertRange(int start, int length, [T initialValue]) { | 53 void insertRange(int start, int length, [T initialValue]) { |
| 54 _list.insertRange(start, length, initialValue); | 54 _list.insertRange(start, length, initialValue); |
| 55 } | 55 } |
| 56 } | 56 } |
| OLD | NEW |