Size.square constructor

const Size.square(double dimension)

Creates a square Size whose width and height are the given dimension.

See also:

  • new 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);