Size.square constructor Null safety
- double dimension
Creates a square Size whose width and height are the given dimension.
See also:
- Size.fromRadius, which is more convenient when the available size is the radius of a circle.
Implementation
const Size.square(double dimension) : super(dimension, dimension);