Unverified Commit 55825f16 authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Remove dynamic calls (#125238)

I don't know what I was thinking when I wrote this code back in 2017 but this is so trivially fixable...
parent 9caabdd2
...@@ -261,14 +261,10 @@ class _GlowingOverscrollIndicatorState extends State<GlowingOverscrollIndicator> ...@@ -261,14 +261,10 @@ class _GlowingOverscrollIndicatorState extends State<GlowingOverscrollIndicator>
} }
} }
} }
} else if (notification is ScrollEndNotification || notification is ScrollUpdateNotification) { } else if ((notification is ScrollEndNotification && notification.dragDetails != null) ||
// Using dynamic here to avoid layer violations of importing (notification is ScrollUpdateNotification && notification.dragDetails != null)) {
// drag_details.dart from gestures. _leadingController!.scrollEnd();
// ignore: avoid_dynamic_calls _trailingController!.scrollEnd();
if ((notification as dynamic).dragDetails != null) {
_leadingController!.scrollEnd();
_trailingController!.scrollEnd();
}
} }
_lastNotificationType = notification.runtimeType; _lastNotificationType = notification.runtimeType;
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment