copyWith method

CornerSpec copyWith({
  1. Corner? topLeft,
  2. Corner? topRight,
  3. Corner? bottomRight,
  4. Corner? bottomLeft,
  5. BorderRadiusGeometry? radius,
})

📋 Returns a copy of this CornerSpec with the given properties.

Implementation

CornerSpec copyWith({
  Corner? topLeft,
  Corner? topRight,
  Corner? bottomRight,
  Corner? bottomLeft,
  BorderRadiusGeometry? radius,
}) =>
    CornerSpec(
      topLeft: topLeft ?? this.topLeft,
      topRight: topRight ?? this.topRight,
      bottomRight: bottomRight ?? this.bottomRight,
      bottomLeft: bottomLeft ?? this.bottomLeft,
      radius: radius ?? this.radius,
    );