copyWith method

  1. @override
MaterialExpressiveBorder copyWith({
  1. BorderSide? side,
  2. MaterialExpressiveShape? shape,
  3. bool? stretch,
})
override

Returns a copy of this OutlinedBorder that draws its outline with the specified side, if side is non-null.

Implementation

@override
MaterialExpressiveBorder copyWith({
  BorderSide? side,
  MaterialExpressiveShape? shape,
  bool? stretch,
}) => MaterialExpressiveBorder(
  shape: shape ?? this.shape,
  stretch: stretch ?? this.stretch,
  side: side ?? this.side,
);