'Flutter google_sign_in how to get grantedScopes or check hasPermissions

I am using the Flutter google_sign_in package to sign the user in with Google (only requesting the basic scope permissions) and then in another spot in my app I need to check if the user has granted my application a certain scope (google photos access) so I can change my user interface to add a button to connect to their google photos if they have not granted access yet. The package does not seem to expose this functionality? How are other people handling this situation?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source