PointerExitEvent.fromMouseEvent constructor

PointerExitEvent.fromMouseEvent(
  1. PointerEvent event
)

Creates an exit event from a PointerEvent.

This is used by the MouseTracker to synthesize exit events.

Implementation

factory PointerExitEvent.fromMouseEvent(PointerEvent event) => PointerExitEvent(
  viewId: event.viewId,
  timeStamp: event.timeStamp,
  pointer: event.pointer,
  kind: event.kind,
  device: event.device,
  position: event.position,
  delta: event.delta,
  buttons: event.buttons,
  obscured: event.obscured,
  pressureMin: event.pressureMin,
  pressureMax: event.pressureMax,
  distance: event.distance,
  distanceMax: event.distanceMax,
  size: event.size,
  radiusMajor: event.radiusMajor,
  radiusMinor: event.radiusMinor,
  radiusMin: event.radiusMin,
  radiusMax: event.radiusMax,
  orientation: event.orientation,
  tilt: event.tilt,
  down: event.down,
  synthesized: event.synthesized,
).transformed(event.transform);