failures.writeln(' * getMinIntrinsicWidth(${constraints.maxWidth}) returned a larger value ($minIntrinsicWidth) than getMaxIntrinsicWidth(${constraints.maxWidth}) ($maxIntrinsicWidth)');
failures.writeln(' * getMinIntrinsicHeight(${constraints.maxHeight}) returned a larger value ($minIntrinsicHeight) than getMaxIntrinsicHeight(${constraints.maxHeight}) ($maxIntrinsicHeight)');
failureCount+=1;
failureCount+=1;
}
}
// TODO(ianh): Test that values are internally consistent in more ways than the above.
RenderObject.debugCheckingIntrinsics=false;
RenderObject.debugCheckingIntrinsics=false;
_debugNeedsIntrinsicSizeCheck=false;
_debugNeedsIntrinsicSizeCheck=false;
if(failures.isNotEmpty){
if(failures.isNotEmpty){
assert(failureCount>0);
assert(failureCount>0);
thrownewFlutterError(
thrownewFlutterError(
'The intrinsic dimension methods of the $runtimeType class returned values that violate the given constraints.\n'
'The intrinsic dimension methods of the $runtimeType class returned values that violate the intrinsic protocol contract.\n'
'The constraints were: $constraints\n'
'The following ${failureCount > 1 ? "failures" : "failure"} was detected:\n'
'The following method${failureCount > 1 ? "s" : ""} returned values outside of those constraints:\n'
'$failures'
'$failures'
'If you are not writing your own RenderBox subclass, then this is not\n'
'If you are not writing your own RenderBox subclass, then this is not\n'