copyWith method
Create a new radius with optional changes to corner values.
Implementation
BorderRadiusData copyWith({
Dim? topLeft,
Dim? topRight,
Dim? bottomLeft,
Dim? bottomRight,
}) {
return BorderRadiusData(
topLeft: topLeft ?? this.topLeft,
topRight: topRight ?? this.topRight,
bottomLeft: bottomLeft ?? this.bottomLeft,
bottomRight: bottomRight ?? this.bottomRight,
);
}