copyWith method

BorderRadiusData copyWith({
  1. Dim? topLeft,
  2. Dim? topRight,
  3. Dim? bottomLeft,
  4. Dim? bottomRight,
})

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,
  );
}