hasReadPhoneNumbersPermission method

  1. @override
Future<bool> hasReadPhoneNumbersPermission()
override

Checks if device has read phone numbers permission

Android only

Implementation

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