PowerAssertionOptions class final
The capabilities one power assertion requests — the Dart mirror of
oh-my-pi's native PowerAssertionOptions: one flag per capability,
all released together when the handle is stopped.
Constructors
Properties
- display → bool
-
caffeinate -d: prevent the display from idle-sleeping.final - hashCode → int
-
The hash code for this object.
no setterinherited
- idle → bool
-
caffeinate -i: prevent the system from idle-sleeping.final - reason → String
-
Human-readable reason shown in platform power diagnostics.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- system → bool
-
caffeinate -s: prevent system sleep (AC power only).final - user → bool
-
caffeinate -u: declare the user active.final
Methods
-
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