copyWith method

  1. @override
TriangleBorder copyWith({
  1. BorderSide? side,
})
override

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

Implementation

@override
TriangleBorder copyWith({BorderSide? side}) {
  return TriangleBorder(side: side ?? this.side);
}