copyWith method
Returns a copy of this BorderRadius with the given fields replaced with the new values.
Implementation
@override
SharpBorderRadius copyWith({
Radius? topLeft,
Radius? topRight,
Radius? bottomLeft,
Radius? bottomRight,
}) {
return SharpBorderRadius.only(
topLeft: topLeft is SharpRadius ? topLeft : this.topLeft,
topRight: topRight is SharpRadius ? topRight : this.topRight,
bottomLeft: bottomLeft is SharpRadius ? bottomLeft : this.bottomLeft,
bottomRight: bottomRight is SharpRadius ? bottomRight : this.bottomRight,
);
}