getIdleDuration method
Milliseconds since the user's last keyboard or mouse input, computed per platform and returned as a single value. See ADR-0001.
Asynchronous because the public API is (ADR-0003), not because the read is: an FFI read is a plain synchronous call.
Implementation
@override
Future<int> getIdleDuration() async => source.idleMilliseconds();