replaced null check with hasContentDimensions (#69164)

This commit is contained in:
Sarbagya Dhaubanjar
2020-10-29 08:07:03 +05:45
committed by GitHub
parent 135aab9cf5
commit e5c4c4b27a

View File

@@ -802,7 +802,7 @@ class _NestedScrollCoordinator implements ScrollActivityDelegate, ScrollHoldCont
bool get hasScrolledBody {
for (final _NestedScrollPosition position in _innerPositions) {
assert(position.minScrollExtent != null && position.hasPixels);
assert(position.hasContentDimensions && position.hasPixels);
if (position.pixels > position.minScrollExtent) {
return true;
}