handleError method

void handleError(
  1. BuildContext context,
  2. AuthException exception
)

Called when an exception relating to authentication gets thrown. Can be overriden to provide your own custom logic (e.g. logging, custome snackbar, etc.)

Implementation

void handleError(BuildContext context, AuthException exception) {
  // ignore: avoid_print
  print(
      'Tried performing ${exception.action} and received an exception: $exception');
}