logout method
void
logout()
Redirects the browser to the logout URI.
Implementation
void logout() async {
var c = await credential;
if (c == null) return;
var uri = c.generateLogoutUrl(
redirectUri: Uri.parse(window.location.href).removeFragment());
if (uri != null) {
window.location.href = uri.toString();
}
}