copyWith method

  1. @override
ContinuousRectangleBorder copyWith({
  1. BorderSide? side,
  2. BorderRadiusGeometry? borderRadius,
})
override

Returns a copy of this OutlinedBorder that draws its outline with the specified side, if side is non-null.

Implementation

@override
ContinuousRectangleBorder copyWith({ BorderSide? side, BorderRadiusGeometry? borderRadius }) {
  return ContinuousRectangleBorder(
    side: side ?? this.side,
    borderRadius: borderRadius ?? this.borderRadius,
  );
}