SelectionGeometry class final
A snapshot of how much of one Selectable's content is currently selected. Selectables notify their registrars when this geometry changes so the rendering tree can repaint the affected selection.
- Annotations
-
- @immutable
Constructors
- SelectionGeometry({required SelectionStatus status, int startEdgeOffsetInContent = -1, int endEdgeOffsetInContent = -1})
-
const
Properties
- endEdgeOffsetInContent → int
-
Where the end edge lands inside this leaf's content. Same
-1sentinel as startEdgeOffsetInContent.final - hasContent → bool
-
Whether the leaf currently displays any selected glyphs.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startEdgeOffsetInContent → int
-
Where the start edge lands inside this leaf's content, as a
character offset.
-1when the start edge is not inside this leaf (i.e. selection runs through us from outside).final - status → SelectionStatus
-
How the live selection touches this Selectable.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- empty → const SelectionGeometry
- Convenience: nothing selected.