WakelockWeb class

The web implementation of the WakelockPlatformInterface.

This class implements the wakelock plugin functionality for web.

Inheritance
  • Object
  • WakelockPlatformInterface
  • WakelockWeb

Constructors

WakelockWeb()

Properties

enabled Future<bool>
Returns whether the wakelock is enabled or not.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isMock bool
Only mock implementations should set this to true.
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
toggle({required bool enable}) Future<void>
Toggles the wakelock based on the given enable value.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

registerWith(Registrar registrar) → void
Registers WakelockWeb as the default instance of the WakelockPlatformInterface.