OffsetPair.fromEventPosition constructor

OffsetPair.fromEventPosition(
  1. PointerEvent event
)

Creates a OffsetPair from PointerEvent.localPosition and PointerEvent.position.

Implementation

factory OffsetPair.fromEventPosition(PointerEvent event) {
  return OffsetPair(local: event.localPosition, global: event.position);
}