PowerAssertionStatus class final
/power's one-line answer: the configured level, whether an
assertion is held right now, and what is holding it.
Constructors
- PowerAssertionStatus({required PowerAssertionLevel level, required PowerAssertionHold hold, required bool held, String? detail})
-
const
Properties
- detail → String?
-
What is (or why nothing is) holding it.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- held → bool
-
Whether an assertion is currently held.
final
- hold → PowerAssertionHold
-
The effective
power.holdlifecycle.final - level → PowerAssertionLevel
-
The effective
power.sleepPreventionlevel.final - 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
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited