createNewPointerState method Null safety

  1. @override
MultiDragPointerState createNewPointerState(
  1. PointerDownEvent event
)
override

Subclasses should override this method to create per-pointer state objects to track the pointer associated with the given event.

Implementation

@override
MultiDragPointerState createNewPointerState(PointerDownEvent event) {
  return _HorizontalPointerState(event.position, event.kind, gestureSettings);
}