copyWith method

DynamicBorderSide copyWith({
  1. Color? color,
  2. Gradient? gradient,
  3. double? width,
  4. BorderStyle? style,
  5. Dimension? begin,
  6. Dimension? end,
  7. Dimension? shift,
  8. StrokeJoin? strokeJoin,
  9. StrokeCap? strokeCap,
})

Implementation

DynamicBorderSide copyWith({
  Color? color,
  Gradient? gradient,
  double? width,
  BorderStyle? style,
  Dimension? begin,
  Dimension? end,
  Dimension? shift,
  StrokeJoin? strokeJoin,
  StrokeCap? strokeCap,
}) {
  return DynamicBorderSide(
    color: color ?? this.color,
    gradient: gradient ?? this.gradient,
    width: width ?? this.width,
    style: style ?? this.style,
    begin: begin ?? this.begin,
    end: end ?? this.end,
    shift: shift ?? this.shift,
    strokeCap: strokeCap ?? this.strokeCap,
    strokeJoin: strokeJoin ?? this.strokeJoin,
  );
}