onError property
Called whenever an error gets caught.
By default, all errors will be printed into the console.
Implementation
void Function(String message, Object error, StackTrace stackTrace) onError =
(message, error, stackTrace) => developer.log(
message,
name: 'keycloak_wrapper',
error: error,
stackTrace: stackTrace,
);