PowerSection class final
The parsed power: section: which sleep-prevention capabilities to
request and when to hold the assertion for them. Absent members keep
their defaults (PowerAssertionLevel.idle is applied by the host,
PowerAssertionHold.perRun is this file's own default).
Constructors
- PowerSection({PowerAssertionLevel? sleepPrevention, PowerAssertionHold? hold})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- hold → PowerAssertionHold?
-
The
holdlifecycle; null when absent (defaultper-run).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sleepPrevention → PowerAssertionLevel?
-
The
sleepPreventionlevel; null when absent (the host appliesidleso "unset" and "explicitly off" stay distinct).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.
override