path method

  1. @override
Path path(
  1. bool close
)
override

Implementation

@override
Path path(bool close) {
  if (_path != null) {
    return _path!;
  }
  Path p = Path();
  Offset o = rect.topCenter;
  p.moveTo(o.dx, o.dy);
  o = rect.centerRight;
  p.lineTo(o.dx, o.dy);
  o = rect.bottomCenter;
  p.lineTo(o.dx, o.dy);
  o = rect.centerLeft;
  p.lineTo(o.dx, o.dy);
  p.close();
  _path = p;
  return p;
}