createNewPointerState method

  1. @override
_ImmediatePointerState createNewPointerState (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
_ImmediatePointerState createNewPointerState(PointerDownEvent event) {
  return _ImmediatePointerState(event.position);
}