Commit 467f3d49 authored by Dan Field's avatar Dan Field Committed by Flutter GitHub Bot

remove duplicative checks (#47026)

parent b0b8b91b
......@@ -442,9 +442,7 @@ class SliverConstraints extends Constraints {
verify(growthDirection != null, 'The "growthDirection" is null.');
verifyDouble(scrollOffset, 'scrollOffset');
verifyDouble(overlap, 'overlap');
verifyDouble(remainingPaintExtent, 'remainingPaintExtent');
verifyDouble(crossAxisExtent, 'crossAxisExtent');
verifyDouble(viewportMainAxisExtent, 'viewportMainAxisExtent');
verifyDouble(scrollOffset, 'scrollOffset', mustBePositive: true);
verify(crossAxisDirection != null, 'The "crossAxisDirection" is null.');
verify(axisDirectionToAxis(axisDirection) != axisDirectionToAxis(crossAxisDirection), 'The "axisDirection" and the "crossAxisDirection" are along the same axis.');
......
......@@ -947,9 +947,7 @@ void main() {
'SliverConstraints is not valid:\n'
' The "scrollOffset" is NaN.\n'
' The "overlap" is NaN.\n'
' The "remainingPaintExtent" is NaN.\n'
' The "crossAxisExtent" is NaN.\n'
' The "viewportMainAxisExtent" is NaN.\n'
' The "scrollOffset" is NaN, expected greater than or equal to zero.\n'
' The "viewportMainAxisExtent" is NaN, expected greater than or equal to zero.\n'
' The "remainingPaintExtent" is NaN, expected greater than or equal to zero.\n'
......
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