copyWith method

  1. @override
RoundedPolygonBorder copyWith({
  1. BorderSide? side,
  2. double? squash,
  3. RoundedPolygon? polygon,
  4. double? startAngle,
})

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

Implementation

@override
RoundedPolygonBorder copyWith({
  BorderSide? side,
  double? squash,
  RoundedPolygon? polygon,
  double? startAngle,
}) => RoundedPolygonBorder(
  polygon: polygon ?? this.polygon,
  startAngle: startAngle ?? this.startAngle,
);