mergeStyle method

  1. @override
DrawableShape mergeStyle(
  1. DrawableStyle newStyle
)
override

Creates an instance with merged style information.

Implementation

@override
DrawableShape mergeStyle(DrawableStyle newStyle) {
  assert(newStyle != null); // ignore: unnecessary_null_comparison
  return DrawableShape(
    id,
    path,
    DrawableStyle.mergeAndBlend(
      style,
      fill: newStyle.fill,
      stroke: newStyle.stroke,
      clipPath: newStyle.clipPath,
      mask: newStyle.mask,
      dashArray: newStyle.dashArray,
      dashOffset: newStyle.dashOffset,
      pathFillType: newStyle.pathFillType,
      textStyle: newStyle.textStyle,
    ),
    transform: transform,
  );
}