onPressedWithDevice property
Functional callback triggered on press. Provides PointerDeviceKind as a parameter.
Can be useful to distinguish between mouse and touch events.
Implementation
final Function(PointerDeviceKind kind)? onPressedWithDevice;