copyWith method
- BorderSide? side,
- LinearBorderEdge? start,
- LinearBorderEdge? end,
- LinearBorderEdge? top,
- LinearBorderEdge? bottom,
override
Returns a copy of this LinearBorder with the given fields replaced with the new values.
Implementation
@override
LinearBorder copyWith({
BorderSide? side,
LinearBorderEdge? start,
LinearBorderEdge? end,
LinearBorderEdge? top,
LinearBorderEdge? bottom,
}) {
return LinearBorder(
side: side ?? this.side,
start: start ?? this.start,
end: end ?? this.end,
top: top ?? this.top,
bottom: bottom ?? this.bottom,
);
}