Size.square constructor

const Size.square(
  1. 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);