copyWith method

  1. @override
OutlinedBorder copyWith({
  1. BorderSide? side,
  2. OutlinedBorder? child,
  3. List<BoxShadow>? boxShadow,
})
override

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

Implementation

@override
OutlinedBorder copyWith({BorderSide? side, OutlinedBorder? child, List<BoxShadow>? boxShadow}) {
  return OutlinedBorderShadow(
    child: (child ?? this.child).copyWith(side: side),
    boxShadow: boxShadow ?? this.boxShadow,
    side: side ?? this.side,
  );
}