Area.fromCircle constructor

Area.fromCircle(
  1. Length radius
)

Returns a new Area object from the radius of a circle.

Implementation

factory Area.fromCircle(Length radius) {
  return Area.fromSquareCentimetres(math.pi * math.pow(radius.inCentimetres, 2));
}