copyWith method

  1. @override
MaterialShapeBorder copyWith({
  1. RoundedPolygon? shape,
  2. BorderSide? side,
  3. double? squash,
})
override

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

Implementation

@override
MaterialShapeBorder copyWith({RoundedPolygon? shape, BorderSide? side, double? squash}) {
  return MaterialShapeBorder(
    shape: shape ?? this.shape,
    side: side ?? this.side,
    squash: squash ?? this.squash,
  );
}