squareSize property

Size get squareSize

Returns a square Size with the current value as both width and height.

Example:

double sideLength = 100.0;
Size squareSize = sideLength.squareSize; // Output: Size(100.0, 100.0)

Implementation

Size get squareSize => Size(this!, this!);