square method

VxBox square(
  1. double val
)

Sets the height and width as square of the box.

Implementation

VxBox square(double val) => this
  .._width = val
  .._height = val;