GestureRecognizer constructor

GestureRecognizer({Object debugOwner, PointerDeviceKind kind })

Initializes the gesture recognizer.

The argument is optional and is only used for debug purposes (e.g. in the toString serialization).

It's possible to limit this recognizer to a specific PointerDeviceKind by providing the optional kind argument. If kind is null, the recognizer will accept pointer events from all device kinds.

Implementation

GestureRecognizer({ this.debugOwner, PointerDeviceKind kind }) : _kind = kind;