WindowsIdleSource class

Reads the Idle duration on Windows from GetLastInputInfo against GetTickCount64, through dart:ffi (ADR-0004).

This reproduces what the retired C++ plugin computed rather than improving on it — the point of the FFI port is that behavior is unchanged, so any difference here is a regression by definition.

Inheritance

Constructors

WindowsIdleSource()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
isSupported → bool
Whether this source can actually read the OS on the current platform.
no setteroverride
name → String
Human-readable identifier, e.g. windows/GetLastInputInfo. Shown in the example's parity screen and used to label parity-test failures, so it must identify which binding a failure came from.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

idleMilliseconds() → int
The Idle duration in milliseconds.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

idleFromTicks({required bool succeeded, required int tickCount64, required int lastInputTick}) → int
The Idle duration implied by one reading of the two clocks, including what to report when the OS call did not succeed.