copyWith method

ShadBorderSide copyWith({
  1. bool? canMerge,
  2. Color? color,
  3. double? width,
  4. BorderStyle? style,
  5. double? strokeAlign,
})

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

Implementation

ShadBorderSide copyWith({
  bool? canMerge,
  Color? color,
  double? width,
  BorderStyle? style,
  double? strokeAlign,
}) {
  return ShadBorderSide(
    canMerge: canMerge ?? this.canMerge,
    color: color ?? this.color,
    width: width ?? this.width,
    style: style ?? this.style,
    strokeAlign: strokeAlign ?? this.strokeAlign,
  );
}