FlutterInactiveTimerPlatform class abstract

The seam between the timer and whatever reads the Idle duration.

Subclass this to supply your own reader — a fake in a test, or a platform this package does not cover. Extend it, do not implement it: getIdleDuration has a default body, so an extends subclass keeps compiling if the interface ever gains a member, while an implements one breaks. Until 4.0.0 that rule was enforced at runtime by plugin_platform_interface's token; dropping that package to become a pure Dart package (ADR-0005) gave up the enforcement but not the rule, and the failure it guarded against is a compile error rather than a silent one.

Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getIdleDuration() Future<int>
Milliseconds since the user's last keyboard or mouse input, computed per platform and returned as a single value. See ADR-0001.
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 Properties

instance FlutterInactiveTimerPlatform
The instance the timer reads from unless one is passed to its constructor.
getter/setter pair