copyWith method Null safety

  1. @override
CircleBorder 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
CircleBorder copyWith({ BorderSide? side }) {
  return CircleBorder(side: side ?? this.side);
}