device property Null safety

int device

The device identifier used for events generated by this object.

Set when the object is constructed. Defaults to 1 if the kind is PointerDeviceKind.mouse, and 0 otherwise.

Implementation

int get device => _device;