debugDeviceActiveCursor method Null safety

  1. @visibleForTesting
MouseCursor? debugDeviceActiveCursor(
  1. int device
)
visibleForTesting">@visibleForTesting

Returns the active mouse cursor for a device.

The return value is the last MouseCursor activated onto this device, even if the activation failed.

This function is only active when asserts are enabled. In release builds, it always returns null.

Implementation

@visibleForTesting
MouseCursor? debugDeviceActiveCursor(int device) {
  return _mouseCursorMixin.debugDeviceActiveCursor(device);
}