heightOf method
Implementation
double heightOf(AbstractNode? node)
{
double? height;
while (true)
{
if (node == null) break;
if (node is RenderBox && node.constraints.hasBoundedHeight)
{
height = node.constraints.maxHeight;
break;
}
node = node.parent;
}
return height ?? System().screenheight.toDouble();
}