isPermissionGranted static method
Check if overlay permission is granted
Implementation
static Future<bool> isPermissionGranted() async {
try {
return await _channel.invokeMethod<bool>('checkPermission') ?? false;
} on PlatformException catch (error) {
log("$error");
return Future.value(false);
}
}