onError method
Called when an error occurs during serialization/deserialization
Implementation
@protected
@mustCallSuper
void onError(Object error, StackTrace stackTrace) {
developer.log(
'HydratedRiverpod error: $error',
name: 'HydratedRiverpod',
error: error,
stackTrace: stackTrace,
);
}