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