debugPrint

'onEnd'

);

@override

Widget

build

BuildContext

context

return

Listener

onPointerDown:

recognizer

addPointer

child:

Container

()

);

Code after migration:

void

main

()

runApp

Foo

());

class

Foo

extends

StatefulWidget

late

final

PanGestureRecognizer

recognizer

@override

void

initState

()

super

initState