Skip to content

Commit bc88d0b

Browse files
authored
Remove checked mode references (#146845)
Fixes flutter/flutter#21066
1 parent 4efdf19 commit bc88d0b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/flutter/lib/src/rendering/box.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ abstract class RenderBox extends RenderObject {
15221522
assert(RenderObject.debugCheckingIntrinsics || !debugDoingThisResize); // performResize should not depend on anything except the incoming constraints
15231523
bool shouldCache = true;
15241524
assert(() {
1525-
// we don't want the checked-mode intrinsic tests to affect
1525+
// we don't want the debug-mode intrinsic tests to affect
15261526
// who gets marked dirty, etc.
15271527
shouldCache = !RenderObject.debugCheckingIntrinsics;
15281528
return true;

packages/flutter/lib/src/rendering/object.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2205,11 +2205,11 @@ abstract class RenderObject with DiagnosticableTreeMixin implements HitTestTarge
22052205
}
22062206
Constraints? _constraints;
22072207

2208-
/// Verify that the object's constraints are being met. Override
2209-
/// this function in a subclass to verify that your state matches
2210-
/// the constraints object. This function is only called in checked
2211-
/// mode and only when needsLayout is false. If the constraints are
2212-
/// not met, it should assert or throw an exception.
2208+
/// Verify that the object's constraints are being met. Override this function
2209+
/// in a subclass to verify that your state matches the constraints object.
2210+
/// This function is only called when asserts are enabled (i.e. in debug mode)
2211+
/// and only when needsLayout is false. If the constraints are not met, it
2212+
/// should assert or throw an exception.
22132213
@protected
22142214
void debugAssertDoesMeetConstraints();
22152215

0 commit comments

Comments
 (0)