SelectionGeometry class Null safety

The geometry of the current selection.

This includes details such as the locations of the selection start and end, line height, etc. This information is used for drawing selection controls for mobile platforms.

The positions in geometry are in local coordinates of the SelectionHandler or Selectable.

Annotations

Constructors

SelectionGeometry({SelectionPoint? startSelectionPoint, SelectionPoint? endSelectionPoint, required SelectionStatus status, required bool hasContent})
Creates a selection geometry object.
const

Properties

endSelectionPoint SelectionPoint?
The geometry information at the selection end.
final
hasContent bool
Whether there is any selectable content in the Selectable or SelectionHandler.
final
hashCode int
The hash code for this object.
read-onlyoverride
hasSelection bool
Whether there is an ongoing selection.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
startSelectionPoint SelectionPoint?
The geometry information at the selection start.
final
status SelectionStatus
The status of ongoing selection in the Selectable or SelectionHandler.
final

Methods

copyWith({SelectionPoint? startSelectionPoint, SelectionPoint? endSelectionPoint, SelectionStatus? status, bool? hasContent}) SelectionGeometry
Makes a copy of this object with the given values updated.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override