Commit 6e30cae8 authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Warn about the size setter. (#7729)

parent a8ed0183
......@@ -1350,6 +1350,9 @@ abstract class RenderBox extends RenderObject {
}
Size _size;
@protected
/// Setting the size, in checked mode, triggers some analysis of the render box,
/// as implemented by [debugAssertDoesMeetConstraints], including calling the intrinsic
/// sizing methods and checking that they meet certain invariants.
set size(Size value) {
assert(!(debugDoingThisResize && debugDoingThisLayout));
assert(sizedByParent || !debugDoingThisResize);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment