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