copyWith method
RoundedRectangleGradientBorder
copyWith({
- required Gradient gradient,
- required BorderRadiusGeometry borderRadius,
- required double width,
- 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,
);
}