circle static method

Path circle({
  1. required Offset center,
  2. required double radius,
  3. Path? path,
})

A circle path function.

This functions can either return a new path or add to existing path.

Implementation

static Path circle({
  required Offset center,
  required double radius,
  Path? path,
}) =>
    (path ?? Path())
      ..addOval(Rect.fromCircle(center: center, radius: radius));