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