mergeStyle method
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,
);
}