SelectionGeometry constructor Null safety
- {SelectionPoint? startSelectionPoint,
- SelectionPoint? endSelectionPoint,
- 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,
required this.status,
required this.hasContent,
}) : assert((startSelectionPoint == null && endSelectionPoint == null) || status != SelectionStatus.none);