isScreenKeptOn static method

Future<bool?> isScreenKeptOn()

Check if screen is kept on

Implementation

static Future<bool?> isScreenKeptOn() {
  if (Platform.isAndroid || Platform.isIOS) {
    return _channel.invokeMethod("isScreenKeptOn");
  }
  return Future.value(false);
}