requestPermissions static method

Future<bool?> requestPermissions({
  1. SystemWindowPrefMode prefMode = SystemWindowPrefMode.DEFAULT,
})

Request the corresponding system window permission

Implementation

static Future<bool?> requestPermissions(
    {SystemWindowPrefMode prefMode = SystemWindowPrefMode.DEFAULT}) async {
  return await _channel.invokeMethod(
      'requestPermissions', [Commons.getSystemWindowPrefMode(prefMode)]);
}