scaleArea method
Scales the area of each renderer element in children
by a scaleFactor
.
scaleFactor
should be calculated based on the available layout area and
the measure which the available layout area represents.
Implementation
@protected
void scaleArea(Iterable<TreeNode<Object>> children, num scaleFactor) {
for (final child in children) {
final element = _getRendererElement(child);
final area = element.measure * (scaleFactor < 0 ? 0 : scaleFactor);
element.area = area <= 0 ? 0 : area;
}
}