sameAs method
Whether other is the same box, laid out the same way.
Every field, including the flex ones: a Row and the Padding that
happens to fit it exactly are not interchangeable, and neither are a
child given flex: 2 and its wrapper.
Implementation
bool sameAs(InspectLayout other) =>
x == other.x &&
y == other.y &&
width == other.width &&
height == other.height &&
isRepaintBoundary == other.isRepaintBoundary &&
flexFactor == other.flexFactor &&
flexFit == other.flexFit &&
(constraints?.sameAs(other.constraints) ?? other.constraints == null) &&
(flex?.sameAs(other.flex) ?? other.flex == null);