onError property

FutureOr Function(AuthorizationException, RequestContext, ResponseContext) onError
final

A callback that is triggered when an OAuth2 error occurs (i.e. the user declines to login);

Implementation

final FutureOr<dynamic> Function(
    oauth2.AuthorizationException, RequestContext, ResponseContext) onError;