copyWith method

  1. @override
LiquidRoundedRectangle copyWith({
  1. BorderSide? side,
  2. double? borderRadius,
})
override

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

Implementation

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