Index: samples-dev/swarm/swarm_ui_lib/touch/ScrollWatcher.dart |
diff --git a/samples-dev/swarm/swarm_ui_lib/touch/ScrollWatcher.dart b/samples-dev/swarm/swarm_ui_lib/touch/ScrollWatcher.dart |
index a6ade4eac99f6302e05b7704e9ebae6a33e68cae..2b0953982fe618f8f46078cc6e999b203b09e091 100644 |
--- a/samples-dev/swarm/swarm_ui_lib/touch/ScrollWatcher.dart |
+++ b/samples-dev/swarm/swarm_ui_lib/touch/ScrollWatcher.dart |
@@ -27,8 +27,8 @@ class ScrollWatcher { |
Element _scrollerEl; |
ScrollWatcher(Scroller scroller) |
- : _scroller = scroller, _listeners = new List<ScrollListener>() { |
- } |
+ : _scroller = scroller, |
+ _listeners = new List<ScrollListener>() {} |
void addListener(ScrollListener listener) { |
_listeners.add(listener); |
@@ -38,8 +38,7 @@ class ScrollWatcher { |
* Send the scroll event to all listeners. |
* [decelerating] is true if the offset is changing because of deceleration. |
*/ |
- void _dispatchScroll(num scrollX, num scrollY, |
- [bool decelerating = false]) { |
+ void _dispatchScroll(num scrollX, num scrollY, [bool decelerating = false]) { |
for (final listener in _listeners) { |
listener.onScrollerMoved(scrollX, scrollY, decelerating); |
} |
@@ -51,7 +50,9 @@ class ScrollWatcher { |
*/ |
void initialize() { |
_scrollerEl = _scroller.getElement(); |
- _scroller.onContentMoved.listen((e) { _onContentMoved(e); }); |
+ _scroller.onContentMoved.listen((e) { |
+ _onContentMoved(e); |
+ }); |
} |
/** |