copyWith method

  1. @override
DashOutlineShapeBorder copyWith({
  1. BorderSide? side,
  2. BorderRadiusGeometry? borderRadius,
  3. double? dashGap,
})
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? dashGap}) {
  return DashOutlineShapeBorder(
    side: side ?? this.side,
    borderRadius: borderRadius ?? this.borderRadius,
    dashGap: dashGap ?? this.dashGap,
  );
}