Remove checked mode references (#146845)

Fixes https://github.com/flutter/flutter/issues/21066
This commit is contained in:
Michael Goderbauer 2024-04-16 15:10:54 -07:00 committed by GitHub
parent 4efdf190a8
commit bc88d0b9ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View file

@ -1522,7 +1522,7 @@ abstract class RenderBox extends RenderObject {
assert(RenderObject.debugCheckingIntrinsics || !debugDoingThisResize); // performResize should not depend on anything except the incoming constraints
bool shouldCache = true;
assert(() {
// we don't want the checked-mode intrinsic tests to affect
// we don't want the debug-mode intrinsic tests to affect
// who gets marked dirty, etc.
shouldCache = !RenderObject.debugCheckingIntrinsics;
return true;

View file

@ -2205,11 +2205,11 @@ abstract class RenderObject with DiagnosticableTreeMixin implements HitTestTarge
}
Constraints? _constraints;
/// Verify that the object's constraints are being met. Override
/// this function in a subclass to verify that your state matches
/// the constraints object. This function is only called in checked
/// mode and only when needsLayout is false. If the constraints are
/// not met, it should assert or throw an exception.
/// Verify that the object's constraints are being met. Override this function
/// in a subclass to verify that your state matches the constraints object.
/// This function is only called when asserts are enabled (i.e. in debug mode)
/// and only when needsLayout is false. If the constraints are not met, it
/// should assert or throw an exception.
@protected
void debugAssertDoesMeetConstraints();