CursorTheme class
Theme configuration for mouse cursors in the node flow editor.
Defines cursor styles for different interaction contexts:
- Default selection/pan cursor
- Cursor when dragging nodes
- Cursor when hovering over nodes
- Cursor when hovering over ports
Example:
final customCursorTheme = CursorTheme.light.copyWith(
selectionCursor: SystemMouseCursors.move,
dragCursor: SystemMouseCursors.grabbing,
);
Constructors
- CursorTheme({required SystemMouseCursor selectionCursor, required SystemMouseCursor dragCursor, required SystemMouseCursor nodeCursor, required SystemMouseCursor portCursor})
-
const
Properties
- dragCursor → SystemMouseCursor
-
Mouse cursor when dragging nodes or panning the canvas.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- nodeCursor → SystemMouseCursor
-
Mouse cursor when hovering over nodes.
final
- portCursor → SystemMouseCursor
-
Mouse cursor when hovering over ports or creating connections.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectionCursor → SystemMouseCursor
-
Default mouse cursor for selection and panning.
final
Methods
-
copyWith(
{SystemMouseCursor? selectionCursor, SystemMouseCursor? dragCursor, SystemMouseCursor? nodeCursor, SystemMouseCursor? portCursor}) → CursorTheme - Creates a copy of this theme with the given fields replaced.
-
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
- dark → const CursorTheme
- Dark theme cursor configuration.
- light → const CursorTheme
- Light theme cursor configuration.