getWheelPath method

Path getWheelPath(
  1. double wheelSize,
  2. double fromRadius,
  3. double toRadius
)

Implementation

Path getWheelPath(double wheelSize, double fromRadius, double toRadius) {
  return Path()
    ..moveTo(wheelSize, wheelSize)
    ..arcTo(
      Rect.fromCircle(
        radius: wheelSize,
        center: Offset(wheelSize, wheelSize),
      ),
      fromRadius,
      toRadius,
      false,
    )
    ..close();
}