VMobjectStyle.copyFrom constructor

VMobjectStyle.copyFrom(
  1. VMobjectStyle style
)

Implementation

VMobjectStyle.copyFrom(VMobjectStyle style)
    : fillColors = style.fillColors != null
          ? [for (var c in style.fillColors!) c.copy()]
          : null,
      strokeColors = style.strokeColors != null
          ? [for (var c in style.strokeColors!) c.copy()]
          : null,
      strokeWidth = style.strokeWidth,
      backgroundStrokeColors = style.backgroundStrokeColors != null
          ? [for (var c in style.backgroundStrokeColors!) c.copy()]
          : null,
      backgroundStrokeWidth = style.backgroundStrokeWidth;