CursorController class
Centralised cursor coordination for focusable widgets.
- Implemented types
Constructors
Properties
- blinking → bool
-
Whether the cursor is set to blink.
no setter
- color → Color
-
Active cursor color.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isVisible → bool
-
Whether the cursor is currently visible.
no setter
- owner → Object?
-
The object that currently owns the cursor, or null when no owner has claimed it.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → CursorStyle
-
Active cursor shape.
no setter
- x → int
-
Current cursor column (zero-based).
no setter
- y → int
-
Current cursor row (zero-based).
no setter
Methods
-
attachRenderer(
Renderer renderer) → void -
Attaches
rendererso subsequent cursor updates are forwarded to it. -
detachRenderer(
) → void - Detaches the current renderer and hides the cursor.
-
dispose(
) → void -
Release resources held by this object.
override
-
hideCursor(
) → void - Hides the cursor unconditionally, regardless of owner.
-
hideCursorFor(
Object owner) → void -
Hides the cursor if
ownercurrently owns it; ignores the call otherwise. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
showCursor(
Object owner, int x, int y, {CursorStyle style = CursorStyle.block, Color? color, bool blinking = true}) → void -
Shows the cursor at (x, y) on behalf of
owner, applying style, color, and blinking. -
toString(
) → String -
A string representation of this object.
inherited
-
updatePosition(
Object owner, int x, int y) → void -
Updates the cursor position to (x, y) if
ownercurrently owns the cursor.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited