There was an error while loading. Please reload this page.
1 parent 26fddd2 commit 079c629Copy full SHA for 079c629
lib/src/view/view_state_builder.dart
@@ -79,7 +79,7 @@ class ViewStateBuilder<T, C extends Cubit<ViewState>>
79
} else if (state is Failure) {
80
return onError?.call(context, state.error) ?? const SizedBox();
81
} else {
82
- return const SizedBox();
+ throw ArgumentError.value(state, 'state');
83
}
84
},
85
);
0 commit comments