copyWith method

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

Returns a copy of this RoundedSuperellipseBorder with the given fields replaced with the new values.

Implementation

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