squareSizeBox property

SizedBox get squareSizeBox

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 get squareSizeBox => SizedBox(width: this!, height: this!);