Rect.fromCircle constructor

const Rect.fromCircle(
  1. double x,
  2. double y,
  3. double r
)

Creates a rectangle representing a circle with centerpoint x,yand radiusr`.

Implementation

const Rect.fromCircle(double x, double y, double r)
    : this.fromLTRB(x - r, y - r, x + r, y + r);