cancel method

Future<void> cancel()

Cancels the web authentication session.

If the session has already presented a view with the authentication webpage, calling this method dismisses that view. Calling cancel on an already canceled session has no effect.

Officially Supported Platforms/Implementations:

Use the PlatformWebAuthenticationSession.isMethodSupported method to check if this method is supported at runtime.

Implementation

Future<void> cancel() => platform.cancel();