copyWith method

ShadBorder copyWith({
  1. EdgeInsetsGeometry? padding,
  2. ShadBorderSide? top,
  3. ShadBorderSide? right,
  4. ShadBorderSide? bottom,
  5. ShadBorderSide? left,
  6. BorderRadiusGeometry? radius,
  7. double? offset,
})

Implementation

ShadBorder copyWith({
  EdgeInsetsGeometry? padding,
  ShadBorderSide? top,
  ShadBorderSide? right,
  ShadBorderSide? bottom,
  ShadBorderSide? left,
  BorderRadiusGeometry? radius,
  double? offset,
}) {
  return ShadBorder(
    top: top ?? this.top,
    right: right ?? this.right,
    bottom: bottom ?? this.bottom,
    left: left ?? this.left,
    padding: padding ?? this.padding,
    radius: radius ?? this.radius,
    offset: offset ?? this.offset,
  );
}