copyWith method
WxBorderSide
copyWith({
- WxBorderStyle? style,
- Color? color,
- Gradient? gradient,
- double? width,
- double? offset,
Creates a copy of this border but with the given fields replaced with the new values.
Implementation
WxBorderSide copyWith({
WxBorderStyle? style,
Color? color,
Gradient? gradient,
double? width,
double? offset,
}) {
return WxBorderSide(
style: style ?? this.style,
color: color ?? this.color,
gradient: gradient ?? this.gradient,
width: width ?? this.width,
offset: offset ?? this.offset,
);
}