getWakeLock static method

Future<void> getWakeLock()

tells the foreground service to also hold a wake lock

Implementation

static Future<void> getWakeLock() async {
  await _invokeMainChannel("getWakeLock");
}