OffsetPair.fromEventDelta constructor Null safety
- 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);
}