diagonal property

double get diagonal

Length of the diagonal

Implementation

double get diagonal => math.sqrt(width * width + height * height);