mouseCursor property Null safety

MouseCursor mouseCursor
final

Mouse cursor when the mouse hovers over this span.

The default value is SystemMouseCursors.click if recognizer is not null, or MouseCursor.defer otherwise.

TextSpan itself does not implement hit testing or cursor changing. The object that manages the TextSpan painting is responsible to return the TextSpan in its hit test, as well as providing the correct mouse cursor when the TextSpan's mouse cursor is MouseCursor.defer.

Implementation

final MouseCursor mouseCursor;