copyWith method
OutlinedBorder
copyWith({
- BorderSide? side,
- OutlinedBorder? child,
- 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,
);
}