addOval method

void addOval (Rect oval)

Adds a new sub-path that consists of a curve that forms the ellipse that fills the given rectangle.

To add a circle, pass an appropriate rectangle as oval. Rect.fromCircle can be used to easily describe the circle's center Offset and radius.

Implementation

void addOval(Rect oval) {
  assert(_rectIsValid(oval));
  _addOval(oval.left, oval.top, oval.right, oval.bottom);
}