merge method

  1. @override
RadialGradientDto merge(
  1. covariant RadialGradientDto? other
)
override

Merges RadialGradientDto with another other RadialGradientDto

Implementation

@override
RadialGradientDto merge(RadialGradientDto? other) {
  if (other == null) return this;

  return RadialGradientDto(
    center: other.center ?? center,
    radius: other.radius ?? radius,
    tileMode: other.tileMode ?? tileMode,
    focal: other.focal ?? focal,
    focalRadius: other.focalRadius ?? focalRadius,
    transform: other.transform ?? transform,
    colors: colors?.merge(other.colors) ?? other.colors,
    stops: stops?.merge(other.stops) ?? other.stops,
  );
}