supportedDevices property

Set<PointerDeviceKind>? supportedDevices
final

The set of PointerDeviceKinds that this widget should recognize.

For example, to only accept stylus input:

supportedDevices: {
  PointerDeviceKind.stylus,
}

If null, it accepts input from all pointer device types.

Implementation

final Set<PointerDeviceKind>? supportedDevices;