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