fromHighlight<T extends Muscle> static method

SvgElement fromHighlight<T extends Muscle>(
  1. MuscleHighlight<T> highlight,
  2. SvgPathReader pathReader, {
  3. Color? strokeColor,
  4. double? strokeWidth,
  5. String? idSuffix,
})

Implementation

static SvgElement fromHighlight<T extends Muscle>(
  MuscleHighlight<T> highlight,
  SvgPathReader pathReader, {
  Color? strokeColor,
  double? strokeWidth,
  String? idSuffix,
}) {
  return getInstance(highlight.muscle, pathReader).toSvgElement(
    highlight.position,
    fillColor: highlight.color,
    fillOpacity: highlight.opacity,
    strokeColor: strokeColor ?? highlight.color,
    strokeWidth: strokeWidth ?? highlight.opacity,
    idSuffix: idSuffix,
  );
}