| Index: samples/ui_lib/util/CollectionUtils.dart
|
| diff --git a/samples/ui_lib/util/CollectionUtils.dart b/samples/ui_lib/util/CollectionUtils.dart
|
| index 8d633ea06f005f7c4196f2cb722359a6157d686e..30ad675dace5f8bd295f877194cdcc0dc88323a6 100644
|
| --- a/samples/ui_lib/util/CollectionUtils.dart
|
| +++ b/samples/ui_lib/util/CollectionUtils.dart
|
| @@ -71,11 +71,11 @@ class CollectionUtils {
|
| /** Compute the minimum of an iterable. Returns null if empty. */
|
| static num min(Iterable source) {
|
| final iter = source.iterator();
|
| - if (!iter.hasNext()) {
|
| + if (!iter.hasNext) {
|
| return null;
|
| }
|
| num best = iter.next();
|
| - while (iter.hasNext()) {
|
| + while (iter.hasNext) {
|
| best = Math.min(best, iter.next());
|
| }
|
| return best;
|
| @@ -84,11 +84,11 @@ class CollectionUtils {
|
| /** Compute the maximum of an iterable. Returns null if empty. */
|
| static num max(Iterable source) {
|
| final iter = source.iterator();
|
| - if (!iter.hasNext()) {
|
| + if (!iter.hasNext) {
|
| return null;
|
| }
|
| num best = iter.next();
|
| - while (iter.hasNext()) {
|
| + while (iter.hasNext) {
|
| best = Math.max(best, iter.next());
|
| }
|
| return best;
|
| @@ -120,11 +120,11 @@ class CollectionUtils {
|
| if (selector != null) {
|
| do {
|
| total += selector(iter.next());
|
| - } while (iter.hasNext());
|
| + } while (iter.hasNext);
|
| } else {
|
| do {
|
| total += iter.next();
|
| - } while (iter.hasNext());
|
| + } while (iter.hasNext);
|
| }
|
| return total;
|
| }
|
|
|