| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 part of $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
| 6 | 6 |
| 7 // TODO(jacobr): use _Lists.dart to remove some of the duplicated | 7 // TODO(jacobr): use _Lists.dart to remove some of the duplicated |
| 8 // functionality. | 8 // functionality. |
| 9 class _ChildrenElementList extends ListBase<Element> { | 9 class _ChildrenElementList extends ListBase<Element> { |
| 10 // Raw Element. | 10 // Raw Element. |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 Iterable<Element> take(int n) { | 86 Iterable<Element> take(int n) { |
| 87 return _childElements.take(n); | 87 return _childElements.take(n); |
| 88 } | 88 } |
| 89 | 89 |
| 90 Iterable<Element> takeWhile(bool test(Element value)) { | 90 Iterable<Element> takeWhile(bool test(Element value)) { |
| 91 return _childElements.takeWhile(test); | 91 return _childElements.takeWhile(test); |
| 92 } | 92 } |
| 93 | 93 |
| 94 Iterable<Element> skip(int n) { | 94 Iterable<Element> skip(int n) { |
| 95 return _childElements.skipList(n); | 95 return _childElements.skip(n); |
| 96 } | 96 } |
| 97 | 97 |
| 98 Iterable<Element> skipWhile(bool test(Element value)) { | 98 Iterable<Element> skipWhile(bool test(Element value)) { |
| 99 return _childElements.skipWhile(test); | 99 return _childElements.skipWhile(test); |
| 100 } | 100 } |
| 101 | 101 |
| 102 Element firstWhere(bool test(Element value), {Element orElse()}) { | 102 Element firstWhere(bool test(Element value), {Element orElse()}) { |
| 103 return _childElements.firstWhere(test, orElse: orElse); | 103 return _childElements.firstWhere(test, orElse: orElse); |
| 104 } | 104 } |
| 105 | 105 |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 | 274 |
| 275 Element min([int compare(Element a, Element b)]) { | 275 Element min([int compare(Element a, Element b)]) { |
| 276 return _childElements.min(compare); | 276 return _childElements.min(compare); |
| 277 } | 277 } |
| 278 | 278 |
| 279 Element max([int compare(Element a, Element b)]) { | 279 Element max([int compare(Element a, Element b)]) { |
| 280 return _childElements.max(compare); | 280 return _childElements.max(compare); |
| 281 } | 281 } |
| 282 | 282 |
| 283 Map<int, Element> asMap() { | 283 Map<int, Element> asMap() { |
| 284 return _childElements.asMapList(this); | 284 return _childElements.asMap(); |
| 285 } | 285 } |
| 286 | 286 |
| 287 String toString() { | 287 String toString() { |
| 288 StringBuffer buffer = new StringBuffer('['); | 288 StringBuffer buffer = new StringBuffer('['); |
| 289 buffer.writeAll(this, ', '); | 289 buffer.writeAll(this, ', '); |
| 290 buffer.write(']'); | 290 buffer.write(']'); |
| 291 return buffer.toString(); | 291 return buffer.toString(); |
| 292 } | 292 } |
| 293 } | 293 } |
| 294 | 294 |
| (...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 993 const ScrollAlignment._internal(this._value); | 993 const ScrollAlignment._internal(this._value); |
| 994 toString() => 'ScrollAlignment.$_value'; | 994 toString() => 'ScrollAlignment.$_value'; |
| 995 | 995 |
| 996 /// Attempt to align the element to the top of the scrollable area. | 996 /// Attempt to align the element to the top of the scrollable area. |
| 997 static const TOP = const ScrollAlignment._internal('TOP'); | 997 static const TOP = const ScrollAlignment._internal('TOP'); |
| 998 /// Attempt to center the element in the scrollable area. | 998 /// Attempt to center the element in the scrollable area. |
| 999 static const CENTER = const ScrollAlignment._internal('CENTER'); | 999 static const CENTER = const ScrollAlignment._internal('CENTER'); |
| 1000 /// Attempt to align the element to the bottom of the scrollable area. | 1000 /// Attempt to align the element to the bottom of the scrollable area. |
| 1001 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1001 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
| 1002 } | 1002 } |
| OLD | NEW |