copyWith method Null safety

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

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

Implementation

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