There are 2 main options here, and as a first step I would see if you can make the first option work, in line with Mohammad's comment:
OPTION 1: SIMPLE LOGOUT
Just remove any stored tokens from your app. The problem with this is that it does not remove the Authorization Server Session Cookie. So by default you cannot force another login prompt, eg to sign in as a new user. One way around this is to send prompt=login as a parameter when performing the login redirect.
OPTION 2: FULL LOGOUT
A more complete OpenID Connect RP initiated logout involves both of these actions and may require you to dig into AppAuth internals:
- Remove stored tokens from your app
- Redirect to remove the Authorization Server session cookie, via an End Session Request
There are potential issues, such as intermittent Chrome white screens that fail to return to the app after logout, due to a missing user gesture.
FURTHER INFO
My blog posts have some further details on AppAuth integration, along with code samples you can run, in case any of this is useful. I am using AppAuth libraries directly from Kotlin / Swift, whereas you need to deal with an additional layer of the Flutter Plugin: