remove duplicative checks (#47026)

This commit is contained in:
Dan Field 2019-12-16 12:38:02 -08:00 committed by Flutter GitHub Bot
parent b0b8b91b97
commit 467f3d49ec
2 changed files with 0 additions and 4 deletions

View File

@ -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.');

View File

@ -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'