MethodChannelKeepScreenOn class
The KeepScreen class controls the automatic screen off.
- Inheritance
-
- Object
- PlatformInterface
- KeepScreenOnPlatform
- MethodChannelKeepScreenOn
Constructors
- MethodChannelKeepScreenOn()
-
factory
- MethodChannelKeepScreenOn.private(MethodChannel _methodChannel)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isOff
→ Future<
bool?> -
Returns true if automatic screen off is enabled.
no setteroverride
-
isOn
→ Future<
bool?> -
Returns true if automatic screen off is disabled.
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
-
toString(
) → String -
A string representation of this object.
inherited
-
turnOff(
) → Future< bool> -
Enables automatic screen off.
(Reset to default.)
It is recommended to call it with the dispose method of StatefulWidget.
override
-
turnOn(
[bool on = true]) → Future< bool> -
Disables automatic screen off.
If you specify false for
on
, the opposite operation is performed.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited