addToPath method Null safety

  1. @override
void addToPath(
  1. Path path
)
override

add the given path to the PathElement

Implementation

@override
void addToPath(Path path) {
  if (relative) {
    path.relativeArcToPoint(
      center,
      rotation: xAxisRotation,
      radius: Radius.elliptical(radius.dx, radius.dy),
    );
  } else {
    path.arcToPoint(
      center,
      rotation: xAxisRotation,
      radius: Radius.elliptical(radius.dx, radius.dy),
    );
  }
}