diagonal property
double
get
diagonal
Implementation
double get diagonal {
var height = child!.paintBounds.height;
var width = child!.paintBounds.width;
return math.sqrt((width * width) + (height * height));
}