copyWith method

  1. @override
WxLinearBorder copyWith({
  1. WxBorderSide? side,
  2. WxBorderStyle? style,
  3. Color? color,
  4. Gradient? gradient,
  5. double? width,
  6. double? offset,
  7. WxLinearBorderSide? start,
  8. WxLinearBorderSide? end,
  9. WxLinearBorderSide? top,
  10. WxLinearBorderSide? bottom,
})

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

Implementation

@override
WxLinearBorder copyWith({
  WxBorderSide? side,
  WxBorderStyle? style,
  Color? color,
  Gradient? gradient,
  double? width,
  double? offset,
  WxLinearBorderSide? start,
  WxLinearBorderSide? end,
  WxLinearBorderSide? top,
  WxLinearBorderSide? bottom,
}) {
  return WxLinearBorder(
    side: side ?? this.side,
    start: start ?? this.start,
    end: end ?? this.end,
    top: top ?? this.top,
    bottom: bottom ?? this.bottom,
  );
}