disable method

Future<void> disable ()

This can simply be called using Wakelock.disable() and does not return anything. You can await the Future to wait for the operation to complete.

Implementation

static Future<void> disable() =>
    _channel.invokeMethod('toggle', {'enable': false});