Commit 02152f65 authored by Hans Muller's avatar Hans Muller

Fix _scrollOffsetIsInBounds analayzer warning

parent 42f48b0f
...@@ -128,7 +128,7 @@ abstract class ScrollableState<T extends Scrollable> extends State<T> { ...@@ -128,7 +128,7 @@ abstract class ScrollableState<T extends Scrollable> extends State<T> {
bool _scrollOffsetIsInBounds(double offset) { bool _scrollOffsetIsInBounds(double offset) {
if (scrollBehavior is! ExtentScrollBehavior) if (scrollBehavior is! ExtentScrollBehavior)
return false; return false;
ExtentScrollBehavior behavior = scrollBehavior as ExtentScrollBehavior; ExtentScrollBehavior behavior = scrollBehavior;
return offset >= behavior.minScrollOffset && offset < behavior.maxScrollOffset; return offset >= behavior.minScrollOffset && offset < behavior.maxScrollOffset;
} }
......
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