copyWith method
Implementation
Selection copyWith({
int? version,
bool? isHidden,
Duration? animationDuration,
List<Rect> Function(List<Rect>)? rectifier,
}) =>
Selection(
version: version ?? this.version,
text: text,
start: start,
end: end,
startPt: startPt,
endPt: endPt,
startAnchor: startAnchor,
endAnchor: endAnchor,
rects: rects,
isHidden: isHidden ?? this.isHidden,
animationDuration: animationDuration ?? this.animationDuration,
rectifier: rectifier ?? this.rectifier);