CursorPainter class
Paints the editing cursor.
Constructors
- CursorPainter(RenderContentProxyBox? editable, CursorStyle style, Rect prototype, Color color, double devicePixelRatio)
Properties
- color → Color
-
final
- devicePixelRatio → double
-
final
- editable → RenderContentProxyBox?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- prototype → Rect
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → CursorStyle
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paint(
Canvas canvas, Offset offset, TextPosition position, bool lineHasEmbed) → void -
Paints cursor on
canvas
at specifiedposition
.offset
is global top left (x, y) of text lineposition
is relative (x) in text line -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited