copyWith method

Border copyWith({
  1. String? top,
  2. String? bottom,
  3. String? left,
  4. String? right,
  5. String? topLeft,
  6. String? topRight,
  7. String? bottomLeft,
  8. String? bottomRight,
  9. String? middleLeft,
  10. String? middleRight,
  11. String? middleTop,
  12. String? middleBottom,
  13. String? middle,
})

Creates a copy with the specified values replaced.

Implementation

Border copyWith({
  String? top,
  String? bottom,
  String? left,
  String? right,
  String? topLeft,
  String? topRight,
  String? bottomLeft,
  String? bottomRight,
  String? middleLeft,
  String? middleRight,
  String? middleTop,
  String? middleBottom,
  String? middle,
}) {
  return Border(
    top: top ?? this.top,
    bottom: bottom ?? this.bottom,
    left: left ?? this.left,
    right: right ?? this.right,
    topLeft: topLeft ?? this.topLeft,
    topRight: topRight ?? this.topRight,
    bottomLeft: bottomLeft ?? this.bottomLeft,
    bottomRight: bottomRight ?? this.bottomRight,
    middleLeft: middleLeft ?? this.middleLeft,
    middleRight: middleRight ?? this.middleRight,
    middleTop: middleTop ?? this.middleTop,
    middleBottom: middleBottom ?? this.middleBottom,
    middle: middle ?? this.middle,
  );
}