instance property
The instance the timer reads from unless one is passed to its constructor.
Defaults to FfiFlutterInactiveTimer, which reads the idle duration
straight from the OS through dart:ffi (ADR-0004). It replaced a
method-channel implementation backed by Swift and C++; both reported the
same value on every platform before the swap, and the CI runs that proved
it are recorded in ADR-0004.
A plain mutable field rather than a validating setter: the validation it
used to carry belonged to plugin_platform_interface, and pretending to
still guard something would be worse than saying plainly that it does not.
Prefer passing a platform to the FlutterInactiveTimer constructor over
setting this — the constructor parameter is per-instance, this is global.
Implementation
static FlutterInactiveTimerPlatform instance = FfiFlutterInactiveTimer();