copyWith method

  1. @override
LinearBorder copyWith(
  1. {BorderSide? side,
  2. LinearBorderEdge? start,
  3. LinearBorderEdge? end,
  4. LinearBorderEdge? top,
  5. LinearBorderEdge? bottom}
)
override

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

Implementation

@override
LinearBorder copyWith({
  BorderSide? side,
  LinearBorderEdge? start,
  LinearBorderEdge? end,
  LinearBorderEdge? top,
  LinearBorderEdge? bottom,
}) {
  return LinearBorder(
    side: side ?? this.side,
    start: start ?? this.start,
    end: end ?? this.end,
    top: top ?? this.top,
    bottom: bottom ?? this.bottom,
  );
}