One held power assertion. release is idempotent and never throws for
an already-gone helper process; held flips false once released or
when the helper died on its own, so status surfaces stay honest.
- Implementers
Properties
- description → String
-
What is holding the machine awake (e.g.
caffeinate -i -w 4242) — shown by/powerand diagnostics.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- held → bool
-
Whether the assertion is currently held.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
release(
) → Future< void> - Drops the assertion. Safe to call more than once.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited