asPath method

  1. @override
Path asPath()
override

Converts the shape to a Path object, suitable for rendering on a canvas. If a particular geometric primitive cannot be represented as a Path faithfully, an approximate path can be returned.

Implementation

@override
Path asPath() {
  final center = _center.toOffset();
  return Path()..addOval(Rect.fromCircle(center: center, radius: _radius));
}