requestPermission static method
Request overlay permission
it will open the overlay settings page and return true once the permission granted.
Implementation
static Future<bool?> requestPermission() async {
try {
return await _channel.invokeMethod<bool?>('requestPermission');
} on PlatformException catch (error) {
log("Error requestPermession: $error");
rethrow;
}
}