PointerEnterEvent.fromMouseEvent constructor

PointerEnterEvent.fromMouseEvent(
  1. PointerEvent event
)

Creates an enter event from a PointerEvent.

This is used by the MouseTracker to synthesize enter events.

Implementation

PointerEnterEvent.fromMouseEvent(PointerEvent event) : this(
  timeStamp: event?.timeStamp,
  kind: event?.kind,
  device: event?.device,
  position: event?.position,
  localPosition: event?.localPosition,
  delta: event?.delta,
  localDelta: event?.localDelta,
  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,
  transform: event?.transform,
  original: null,
);