copyWith method

  1. @override
WxContinuousRectangleBorder copyWith({
  1. WxBorderSide? side,
  2. WxBorderStyle? style,
  3. Color? color,
  4. Gradient? gradient,
  5. double? width,
  6. double? offset,
  7. BorderRadiusGeometry? corners,
})
override

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

Implementation

@override
WxContinuousRectangleBorder copyWith({
  WxBorderSide? side,
  WxBorderStyle? style,
  Color? color,
  Gradient? gradient,
  double? width,
  double? offset,
  BorderRadiusGeometry? corners,
}) {
  return WxContinuousRectangleBorder(
    side: side ?? this.side,
    style: style ?? this.style,
    color: color ?? this.color,
    gradient: gradient ?? this.gradient,
    width: width ?? this.width,
    offset: offset ?? this.offset,
    corners: corners ?? this.corners,
  );
}