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

Unified Diff: samples/swarm/SwarmState.dart

Issue 10919146: Get rid of a lot of () for getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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/SwarmViews.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/SwarmState.dart
diff --git a/samples/swarm/SwarmState.dart b/samples/swarm/SwarmState.dart
index efad2d07015fc279d0fbeb701324be69a88fd359..cf395073101ae4230fd6eaeb4a9c481e3f528d14 100644
--- a/samples/swarm/SwarmState.dart
+++ b/samples/swarm/SwarmState.dart
@@ -259,13 +259,13 @@ class SwarmState extends UIState {
/**
* Returns true if the UI is currently in the Story View state.
*/
- bool get inMainView() => currentArticle.value == null;
+ bool get inMainView => currentArticle.value == null;
/**
* Returns true if we currently have an Article selected (for keyboard
* shortcuts browsing).
*/
- bool get hasArticleSelected() => selectedArticle.value != null;
+ bool get hasArticleSelected => selectedArticle.value != null;
/**
* Mark the current article as read
@@ -292,6 +292,6 @@ class SwarmState extends UIState {
_articleIterator.currentIndex.listeners);
}
- Section get currentSection() => _sectionIterator.current;
- Feed get currentFeed() => _feedIterator.current;
+ Section get currentSection => _sectionIterator.current;
+ Feed get currentFeed => _feedIterator.current;
}
« no previous file with comments | « samples/swarm/DataSource.dart ('k') | samples/swarm/SwarmViews.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698