File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/hydrated_bloc/lib/src Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,13 @@ typedef OnHydrationError = HydrationErrorBehavior Function(
2424 StackTrace stackTrace,
2525);
2626
27- const _defaultHydrationErrorBehavior = HydrationErrorBehavior .overwrite;
28-
29- HydrationErrorBehavior _defaultOnHydrationError (
27+ /// The default hydration `onError` implementation.
28+ /// Returns [HydrationErrorBehavior.overwrite] .
29+ HydrationErrorBehavior defaultOnHydrationError (
3030 Object error,
3131 StackTrace stackTrace,
3232) {
33- return _defaultHydrationErrorBehavior ;
33+ return HydrationErrorBehavior .overwrite ;
3434}
3535
3636/// {@template hydrated_bloc}
@@ -170,7 +170,7 @@ mixin HydratedMixin<State> on BlocBase<State> {
170170 /// ```
171171 void hydrate ({
172172 Storage ? storage,
173- OnHydrationError onError = _defaultOnHydrationError ,
173+ OnHydrationError onError = defaultOnHydrationError ,
174174 }) {
175175 __storage = storage ?? = HydratedBloc .storage;
176176 try {
You can’t perform that action at this time.
0 commit comments