copyWith method

RoundedRectangleGradientBorder copyWith({
  1. required Gradient gradient,
  2. required BorderRadiusGeometry borderRadius,
  3. required double width,
  4. required double strokeAlign,
})

Returns a copy of this RoundedRectangleBorder with the given fields replaced with the new values.

Implementation

RoundedRectangleGradientBorder copyWith({
  required Gradient gradient,
  required BorderRadiusGeometry borderRadius,
  required double width,
  required double strokeAlign,
}) {
  return RoundedRectangleGradientBorder(
    gradient: gradient,
    width: width,
    borderRadius: borderRadius,
    strokeAlign: strokeAlign,
  );
}