requestCallPhonePermission method

  1. @override
Future<bool?> requestCallPhonePermission()
override

request 'android.permission.CALL_PHONE' permission

Android only

Implementation

@override
Future<bool?> requestCallPhonePermission() {
  if (defaultTargetPlatform != TargetPlatform.android) {
    return Future.value(true);
  }
  return _channel.invokeMethod('requestCallPhonePermission', {});
}