applyStyle method

VMobject applyStyle(
  1. SVGElementStyle style,
  2. VMobject mob
)

Implementation

VMobject applyStyle(SVGElementStyle style, VMobject mob) {
  mob.setStyle(
    fillColor: style.fillColor,
    strokeColor: style.strokeColor,
    strokeWidth: style.strokeWidth,
  );

  return mob;
}