copyWith method

  1. @override
LiquidVerticalRoundedRectangle copyWith({
  1. BorderSide? side,
  2. double? topRadius,
  3. double? bottomRadius,
})
override

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

Implementation

@override
LiquidVerticalRoundedRectangle copyWith({
  BorderSide? side,
  double? topRadius,
  double? bottomRadius,
}) {
  return LiquidVerticalRoundedRectangle(
    side: side ?? this.side,
    topRadius: topRadius ?? this.topRadius,
    bottomRadius: bottomRadius ?? this.bottomRadius,
  );
}