copyWith method

  1. @override
WxStadiumBorder copyWith({
  1. WxBorderSide? side,
  2. WxBorderStyle? style,
  3. Color? color,
  4. Gradient? gradient,
  5. double? width,
  6. double? offset,
  7. double? eccentricity,
})

Creates a copy of this WxOutlinedBorder with modified properties.

Use this method to create a new border with specific customizations.

Implementation

@override
WxStadiumBorder copyWith({
  WxBorderSide? side,
  WxBorderStyle? style,
  Color? color,
  Gradient? gradient,
  double? width,
  double? offset,
  double? eccentricity,
}) {
  return WxStadiumBorder(
    side: side ?? this.side,
    style: style ?? this.style,
    color: color ?? this.color,
    gradient: gradient ?? this.gradient,
    width: width ?? this.width,
    offset: offset ?? this.offset,
  );
}