mouseCursor property Null safety
final
The cursor for a mouse pointer when it enters or is hovering over the widget.
If mouseCursor is a MaterialStateProperty<MouseCursor>, MaterialStateProperty.resolve is used for the following MaterialStates:
If null, then the value of SwitchThemeData.mouseCursor is used. If that is also null, then MaterialStateMouseCursor.clickable is used.
See also:
- MaterialStateMouseCursor, a MouseCursor that implements
MaterialStateProperty
which is used in APIs that need to accept either a MouseCursor or a MaterialStateProperty<MouseCursor>.
Implementation
final MouseCursor? mouseCursor;