copyWith method

WxBorderSide copyWith({
  1. WxBorderStyle? style,
  2. Color? color,
  3. Gradient? gradient,
  4. double? width,
  5. double? offset,
})

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

Implementation

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