requestReadPhoneStatePermission method

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

Request read phone state permission

Android only

Implementation

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