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