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() => Path()..addRRect(asRRect());