ScreenAwake class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
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.
inherited
Static Properties
-
holds
→ int
-
Quantas telas seguram a tela acesa agora.
no setter
Static Methods
-
acquire()
→ void
-
Uma tela passa a segurar a tela acesa; a primeira liga o wakelock.
-
debugReset([Future<void> apply(bool on)?])
→ void
-
Troca o wakelock por
apply e zera a conta (só nos testes).
-
release()
→ void
-
Uma tela solta o que segurou; a última desliga o wakelock. Soltar sem ter
segurado não faz nada.