Size.fromRadius constructor

const Size.fromRadius(double radius)

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

This is a square that contains a circle with the given radius.

See also:

Implementation

const Size.fromRadius(double radius) : super(radius * 2.0, radius * 2.0);