asPath method
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() {
return Path()..addRect(Rect.fromLTRB(_left, _top, _right, _bottom));
}