setCursorOverride method
Sets a global cursor override for exclusive operations.
When set, this cursor takes precedence over all element-specific and interaction-based cursor derivation. Use this during resize, connection creation, or other exclusive operations where the cursor should remain locked regardless of what the mouse hovers over.
Parameters:
cursor- The cursor to force, or null to clear the override
Implementation
void setCursorOverride(MouseCursor? cursor) {
runInAction(() {
cursorOverride.value = cursor;
});
}