mergeStyle method

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

Creates an instance with merged style information.

Implementation

@override
DrawableRasterImage mergeStyle(DrawableStyle newStyle) {
  assert(newStyle != null); // ignore: unnecessary_null_comparison
  return DrawableRasterImage(
    id,
    image,
    offset,
    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,
    ),
    size: size,
    transform: transform,
  );
}