performLayout abstract method
Layout protocol: given constraints, compute size and position.
Subclasses implement performLayout; parents must invoke layout, which runs it and then clears the needs-layout flag.
Implementation
void performLayout(Constraints constraints);