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...
This commit is contained in:
parent
9caabdd220
commit
55825f166e
@ -261,14 +261,10 @@ class _GlowingOverscrollIndicatorState extends State<GlowingOverscrollIndicator>
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (notification is ScrollEndNotification || notification is ScrollUpdateNotification) {
|
||||
// Using dynamic here to avoid layer violations of importing
|
||||
// drag_details.dart from gestures.
|
||||
// ignore: avoid_dynamic_calls
|
||||
if ((notification as dynamic).dragDetails != null) {
|
||||
_leadingController!.scrollEnd();
|
||||
_trailingController!.scrollEnd();
|
||||
}
|
||||
} else if ((notification is ScrollEndNotification && notification.dragDetails != null) ||
|
||||
(notification is ScrollUpdateNotification && notification.dragDetails != null)) {
|
||||
_leadingController!.scrollEnd();
|
||||
_trailingController!.scrollEnd();
|
||||
}
|
||||
_lastNotificationType = notification.runtimeType;
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user