addToPath method

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

add the given path to the PathElement

Implementation

@override
void addToPath(Path path) {
  if (relative) {
    path.relativeLineTo(targetX, 0);
  } else {
    path.lineTo(targetX, startPoint.dy);
  }
}