copyWith method

  1. @override
WxLinearBorderSide copyWith({
  1. WxBorderStyle? style,
  2. Color? color,
  3. Gradient? gradient,
  4. double? width,
  5. double? offset,
  6. double? size,
  7. double? alignment,
})
override

Creates a copy of this border but with the given fields replaced with the new values.

Implementation

@override
WxLinearBorderSide copyWith({
  WxBorderStyle? style,
  Color? color,
  Gradient? gradient,
  double? width,
  double? offset,
  double? size,
  double? alignment,
}) {
  return WxLinearBorderSide.fromAncestor(
    side: super.copyWith(
      style: style,
      color: color,
      gradient: gradient,
      width: width,
      offset: offset,
    ),
    size: size ?? this.size,
    alignment: alignment ?? this.alignment,
  );
}