drawing method

  1. @override
void drawing(
  1. Offset nowPoint
)
override

正在绘制

Implementation

@override
void drawing(Offset nowPoint) {
  endPoint = nowPoint;
  center = Offset(
      (startPoint.dx + endPoint.dx) / 2, (startPoint.dy + endPoint.dy) / 2);
  radius = (endPoint - (startFromCenter ? startPoint : center)).distance;
}