Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(616)

Unified Diff: samples/swarm/swarm_ui_lib/layout/GridLayout.dart

Issue 12086062: Rename mappedBy to map. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Undo change to test-script. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/swarm/DataSource.dart ('k') | samples/swarm/swarm_ui_lib/observable/observable.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/swarm_ui_lib/layout/GridLayout.dart
diff --git a/samples/swarm/swarm_ui_lib/layout/GridLayout.dart b/samples/swarm/swarm_ui_lib/layout/GridLayout.dart
index a831dfce0cbfa8f3dd5c7c47e6b383565f76063f..47c2f10011ee6f83cf638ec9a56356dee495e94d 100644
--- a/samples/swarm/swarm_ui_lib/layout/GridLayout.dart
+++ b/samples/swarm/swarm_ui_lib/layout/GridLayout.dart
@@ -155,7 +155,7 @@ class GridLayout extends ViewLayout {
// TODO(jmesserly): as a performance optimization we could cache this
final items = view.childViews
- .mappedBy((view_) => view_.layout)
+ .map((view_) => view_.layout)
.toList();
CollectionUtils.sortBy(items, (item) => _getSpanCount(item));
@@ -422,7 +422,7 @@ class GridLayout extends ViewLayout {
* run before the track sizing algorithm.
*/
void _ensureAllTracks() {
- final items = view.childViews.mappedBy((view_) => view_.layout);
+ final items = view.childViews.map((view_) => view_.layout);
for (final child in items) {
if (child.layoutParams == null) {
@@ -439,7 +439,7 @@ class GridLayout extends ViewLayout {
* Given the track sizes that were computed, position children in the grid.
*/
void _setBoundsOfChildren() {
- final items = view.childViews.mappedBy((view_) => view_.layout);
+ final items = view.childViews.map((view_) => view_.layout);
for (final item in items) {
GridLayoutParams childLayout = item.layoutParams;
« no previous file with comments | « samples/swarm/DataSource.dart ('k') | samples/swarm/swarm_ui_lib/observable/observable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698