hasCallPhonePermission method
Checks if device has 'android.permission.CALL_PHONE' permission
Android only
Implementation
@override
Future<bool> hasCallPhonePermission() {
if (defaultTargetPlatform != TargetPlatform.android) {
return Future.value(true);
}
return _channel.invokeMethod<bool?>('hasCallPhonePermission', {}).then<bool>((bool? value) => value ?? false);
}