Android, iOS, macOS (via Hybrid Implementation), and Web use Platform Channels in their implementations.
Windows and Linux are handled through Dart-only platform implementations.
If you want to contribute to this plugin, follow the contributing guide.
Origin
As stated before, this plugin is a continuation of the original wakelock plugin.
That plugin was originally based on screen.
Specifically, the wakelock functionality was extracted into the wakelock plugin due to lack of
maintenance by the author of the screen plugin.
For this library, the functionality remains the
same as the original plugin, but has been completely refreshed (using latest Flutter standards and
platform integration) with support for all six platforms currently supported by Flutter
(Android, iOS, macOS, Windows, Linux, and Web).
Migrating from the wakelock Plugin
Simply replace the import statement with the one below:
import'package:wakelock_plus/wakelock_plus.dart';
As well as replacing all the calls to Wakelock with WakelockPlus: