• Tong Mu's avatar
    MouseCursor uses a special class instead of null to defer (#57094) · 5fa1c60b
    Tong Mu authored
    * Uses a special cursor value MouseCursor.defer to mark deferring. MouseTrackerAnnotation.cursor is now non-null. The mouseCursor argument of widgets or render objects can be null, which indicates using the default value.
    * Moves SystemMouseCursors.uncontrolled to MouseCursor.uncontrolled.
    * Changes how MouseCursor.debugDescription is defined. Previously MouseCursor.toString returns $runtimeType($debugDescription), while now it returns $debugDescription. Implementations of classes are updated, except for the ones of MouseCursor.defer and MouseCursor.uncontrolled are simply "defer" and "uncontrolled".
    5fa1c60b
mouse_tracking_cursor_test.dart 18.4 KB