requestPermission method

Future<Result<PermissionStatus>> requestPermission({
  1. bool readOnly = false,
})

Requests permission to access contacts

readOnly - If true, requests read-only access (Android only) Returns the permission status after the request

Implementation

Future<Result<PermissionStatus>> requestPermission({
  bool readOnly = false,
}) async {
  _ensureInitialized();
  return _repository.requestPermission(readOnly: readOnly);
}