request method

Future<WakeLockSentinel> request([
  1. WakeLockType? type = WakeLockType.screen
])

Implementation

Future<WakeLockSentinel> request(
        [WakeLockType? type = WakeLockType.screen]) =>
    js_util
        .promiseToFuture(js_util.callMethod(this, 'request', [type?.value]));