OffsetPair.fromEventDelta constructor Null safety

OffsetPair.fromEventDelta(
  1. PointerEvent event
)

Creates a OffsetPair from PointerEvent.localDelta and PointerEvent.delta.

Implementation

factory OffsetPair.fromEventDelta(PointerEvent event) {
  return OffsetPair(local: event.localDelta, global: event.delta);
}