getSvgPath method

List<String> getSvgPath(
  1. MusclePosition? position
)

Returns the raw SVG path data string(s) for the specified position.

Implementation

List<String> getSvgPath(MusclePosition? position) {
  switch (position) {
    case MusclePosition.left:
      return leftSvgPath;
    case MusclePosition.right:
      return rightSvgPath;
    case MusclePosition.both:
    default:
      return svgPaths;
  }
}