requestPermissions method

Future requestPermissions (
  1. bool background
)

Implementation

static Future requestPermissions(bool background) async {
  try {
    await _channel
        .invokeMethod('requestPermissions', {"background": background});
  } on PlatformException catch (e) {
    print("Got error: $e");
  }
}