CursorThemeExtension extension
Extension on CursorTheme for deriving cursors from interaction state.
This centralizes all cursor resolution logic, making it easy to determine the correct cursor based on the current element type and interaction state.
Usage
final cursor = cursorTheme.cursorFor(
ElementType.node,
interaction: controller.interaction,
);
- on
Methods
-
cursorFor(
ElementType elementType, InteractionState interaction, {bool isInteractive = true}) → SystemMouseCursor -
Available on CursorTheme, provided by the CursorThemeExtension extension
Returns the appropriate cursor for the given element type and interaction state.