squareSizeBox method
Returns a square Size object with the current value as both width and height.
Example:
Size squareSize = 50.0.squareSizeBox;
print('Square Size: $squareSize'); // Output: Size(50.0, 50.0)
Implementation
SizedBox squareSizeBox() => SizedBox(
width: this.validate().toDouble(), height: this.validate().toDouble());