debugDeviceActiveCursor method

MouseCursor? debugDeviceActiveCursor(
  1. int device
)

Returns the active mouse cursor of a device.

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

Only valid when asserts are enabled. In release builds, always returns null.

Implementation

MouseCursor? debugDeviceActiveCursor(int device) {
  MouseCursor? result;
  assert(() {
    result = _lastSession[device]?.cursor;
    return true;
  }());
  return result;
}