cursor property Null safety
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:
- MouseRegion.cursor, which provide values to this field.
Implementation
@override
MouseCursor get cursor => _cursor;
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();
}
}