SelectionGeometry constructor
- SelectionPoint? startSelectionPoint,
- SelectionPoint? endSelectionPoint,
- List<
Rect> selectionRects = const <Rect>[], - required SelectionStatus status,
- required bool hasContent,
Creates a selection geometry object.
If any of the startSelectionPoint and endSelectionPoint is not null, the status must not be SelectionStatus.none.
Implementation
const SelectionGeometry({
this.startSelectionPoint,
this.endSelectionPoint,
this.selectionRects = const <Rect>[],
required this.status,
required this.hasContent,
}) : assert((startSelectionPoint == null && endSelectionPoint == null) || status != SelectionStatus.none);