copyWith method
- SelectionPoint? startSelectionPoint,
- SelectionPoint? endSelectionPoint,
- List<
Rect> ? selectionRects, - SelectionStatus? status,
- bool? hasContent,
Makes a copy of this object with the given values updated.
Implementation
SelectionGeometry copyWith({
SelectionPoint? startSelectionPoint,
SelectionPoint? endSelectionPoint,
List<Rect>? selectionRects,
SelectionStatus? status,
bool? hasContent,
}) {
return SelectionGeometry(
startSelectionPoint: startSelectionPoint ?? this.startSelectionPoint,
endSelectionPoint: endSelectionPoint ?? this.endSelectionPoint,
selectionRects: selectionRects ?? this.selectionRects,
status: status ?? this.status,
hasContent: hasContent ?? this.hasContent,
);
}