copyWith method
NonUniformRoundedRectangleBorder
copyWith({
- BorderSide? side,
- BorderRadius? borderRadius,
- bool? hideTopSide,
- bool? hideBottomSide,
- bool? hideRightSide,
- bool? hideLeftSide,
override
Returns a copy of this [NonUniformRoundedRectangleBorder\ with the given fields replaced with the new values.
Implementation
@override
NonUniformRoundedRectangleBorder copyWith({
BorderSide? side,
BorderRadius? borderRadius,
bool? hideTopSide,
bool? hideBottomSide,
bool? hideRightSide,
bool? hideLeftSide,
}) {
return NonUniformRoundedRectangleBorder(
side: side ?? this.side,
borderRadius: borderRadius ?? this.borderRadius,
hideTopSide: hideTopSide ?? this.hideTopSide,
hideBottomSide: hideBottomSide ?? this.hideBottomSide,
hideRightSide: hideRightSide ?? this.hideRightSide,
hideLeftSide: hideLeftSide ?? this.hideLeftSide,
);
}