File tree 2 files changed +6
-6
lines changed
packages/flutter/lib/src/rendering
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1522,7 +1522,7 @@ abstract class RenderBox extends RenderObject {
1522
1522
assert (RenderObject .debugCheckingIntrinsics || ! debugDoingThisResize); // performResize should not depend on anything except the incoming constraints
1523
1523
bool shouldCache = true ;
1524
1524
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
1526
1526
// who gets marked dirty, etc.
1527
1527
shouldCache = ! RenderObject .debugCheckingIntrinsics;
1528
1528
return true ;
Original file line number Diff line number Diff line change @@ -2205,11 +2205,11 @@ abstract class RenderObject with DiagnosticableTreeMixin implements HitTestTarge
2205
2205
}
2206
2206
Constraints ? _constraints;
2207
2207
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.
2213
2213
@protected
2214
2214
void debugAssertDoesMeetConstraints ();
2215
2215
You can’t perform that action at this time.
0 commit comments