mergeWith method
Implementation
SvgLinearGradient mergeWith(SvgLinearGradient other) {
return SvgLinearGradient(
other.gradientUnits ?? gradientUnits,
other.x1 ?? x1,
other.y1 ?? y1,
other.x2 ?? x2,
other.y2 ?? y2,
other.transform.isNotEmpty ? other.transform : transform,
other.colors.isNotEmpty ? other.colors : colors,
other.stops.isNotEmpty ? other.stops : stops,
other.opacityList.isNotEmpty ? other.opacityList : opacityList,
);
}