copyWith method

  1. @override
SmoothRectangleBorder copyWith({
  1. BorderSide? side,
  2. BorderRadiusGeometry? borderRadius,
  3. double? smoothness,
})
override

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

Implementation

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