copyWith method
WxLinearBorder
copyWith({
- WxBorderSide? side,
- WxBorderStyle? style,
- Color? color,
- Gradient? gradient,
- double? width,
- double? offset,
- WxLinearBorderSide? start,
- WxLinearBorderSide? end,
- WxLinearBorderSide? top,
- 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,
);
}