copyWith method

  1. @override
DashOutlineShapeBorder copyWith({
  1. BorderSide? side,
  2. BorderRadiusGeometry? borderRadius,
  3. double? step,
  4. double? span,
})
override

Returns a copy of this RoundedRectangleBorder with the given fields replaced with the new values.

Implementation

@override
DashOutlineShapeBorder copyWith(
    {BorderSide? side, BorderRadiusGeometry? borderRadius, double? step, double? span}) {
  return DashOutlineShapeBorder(
    side: side ?? this.side,
    borderRadius: borderRadius ?? this.borderRadius,
    step: step ?? this.step,
    span: span ?? this.span,

  );
}