Fix _scrollOffsetIsInBounds analayzer warning

This commit is contained in:
Hans Muller 2015-09-29 14:21:57 -07:00
parent 42f48b0f0e
commit 02152f65fb

View File

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