onError property

void Function(Object error)? onError
final

Called when the OAuth flow throws. Receives the underlying exception so consumers can surface a localized error message.

Implementation

final void Function(Object error)? onError;