NoopPowerAssertionHandle class final

A handle that never held anything: the clean degradation for platforms without a power-inhibition helper (the documented Windows stub, exotic hosts).

Implemented types

Constructors

NoopPowerAssertionHandle(String description)
const

Properties

description → String
What is holding the machine awake (e.g. caffeinate -i -w 4242) — shown by /power and diagnostics.
final
hashCode → int
The hash code for this object.
no setterinherited
held → bool
Whether the assertion is currently held.
no setteroverride
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.
override
toString() → String
A string representation of this object.
inherited

Operators

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