Cursor class

The cursor CSS property sets the mouse cursor, if any, to show when the mouse pointer is over an element.

Read more: MDN cursor

Constructors

Cursor.url(String url, {double? x, double? y, required Cursor fallback})
Create a custom cursor from a URL, with optional hotspot coordinates and a fallback cursor.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The css value
final

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.
inherited

Constants

alias → const Cursor
An alias or shortcut is to be created.
allScroll → const Cursor
Something can be scrolled in any direction (panned).
auto → const Cursor
The user agent will determine the cursor to display based on the current context.
cell → const Cursor
The table cell or set of cells can be selected.
colResize → const Cursor
The item/column can be resized horizontally. Often rendered as arrows pointing left and right with a vertical bar separating them.
contextMenu → const Cursor
A context menu is available.
copy → const Cursor
Something is to be copied.
crosshair → const Cursor
Cross cursor, often used to indicate selection in a bitmap.
defaultCursor → const Cursor
The platform-dependent default cursor. Typically an arrow.
eResize → const Cursor
The edge of the item can be moved right.
ewResize → const Cursor
The edge of the item can be moved horizontally (east-west).
grab → const Cursor
Something can be grabbed (dragged to be moved).
grabbing → const Cursor
Something is being grabbed (dragged to be moved).
help → const Cursor
Help information is available.
move → const Cursor
Something is to be moved.
neResize → const Cursor
The edge of the item can be moved diagonally (north-east).
neswResize → const Cursor
The edge of the item can be moved diagonally (north-east south-west).
noDrop → const Cursor
An item may not be dropped at the current location.
none → const Cursor
No cursor is rendered.
notAllowed → const Cursor
The requested action will not be carried out.
nResize → const Cursor
The edge of the item can be moved up.
nsResize → const Cursor
The edge of the item can be moved vertically (north-south).
nwResize → const Cursor
The edge of the item can be moved diagonally (north-west).
nwseResize → const Cursor
The edge of the item can be moved diagonally (north-west south-east).
pointer → const Cursor
The cursor is a pointer that indicates a link. Typically an image of a pointing hand.
progress → const Cursor
The program is busy in the background, but the user can still interact with the interface (in contrast to wait).
rowResize → const Cursor
The item/row can be resized vertically. Often rendered as arrows pointing up and down with a horizontal bar separating them.
seResize → const Cursor
The edge of the item can be moved diagonally (south-east).
sResize → const Cursor
The edge of the item can be moved down.
swResize → const Cursor
The edge of the item can be moved diagonally (south-west).
text → const Cursor
The text can be selected. Typically the shape of an I-beam.
verticalText → const Cursor
The vertical text can be selected. Typically the shape of a sideways I-beam.
wait → const Cursor
The program is busy, and the user can't interact with the interface (in contrast to progress). Sometimes an image of an hourglass or a watch.
wResize → const Cursor
The edge of the item can be moved left.
zoomIn → const Cursor
Something can be zoomed in.
zoomOut → const Cursor
Something can be zoomed out.