cursor property

  1. @override
MouseCursor cursor
override

The mouse cursor for mouse pointers that are hovering over the region.

When a mouse enters the region, its cursor will be changed to the cursor. When the mouse leaves the region, the cursor will be set by the region found at the new location.

Defaults to MouseCursor.defer, deferring the choice of cursor to the next region behind it in hit-test order.

See also:

Implementation

@override
MouseCursor get cursor => _cursor;
void cursor=(MouseCursor value)

Implementation

set cursor(MouseCursor value) {
  if (_cursor != value) {
    _cursor = value;
    // A repaint is needed in order to trigger a device update of
    // [MouseTracker] so that this new value can be found.
    markNeedsPaint();
  }
}