CrdtTextCursor class
A collaborator's text cursor to draw over a text field: identity, paint style and the stable anchors of their selection.
The anchors come from CRDTFugueTextHandler.stablePositionAt on the
collaborator's side (see CrdtTextFieldBuilder.onSelectionAnchorsChanged)
and typically travel over an ephemeral presence channel — they must NOT
be part of the document history.
- Annotations
Constructors
- CrdtTextCursor({required Object id, required Color color, required FugueElementID base, FugueElementID? extent, String? label})
-
A collaborator's text cursor to draw over a text field: identity, paint
style and the stable anchors of their selection.
const
Properties
- base → FugueElementID
-
Stable anchor of the selection base.
final
- color → Color
-
Caret and selection-highlight color.
final
- extent → FugueElementID
-
Stable anchor of the selection extent; equal to base for a caret.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → Object
-
Identity of the collaborator (used only for equality).
final
- label → String?
-
Small name tag drawn above the caret; omitted when
null.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override