Skip to content

Commit 079c629

Browse files
committed
Change: ViewStateBuilder error for default case.
1 parent 26fddd2 commit 079c629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/view/view_state_builder.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class ViewStateBuilder<T, C extends Cubit<ViewState>>
7979
} else if (state is Failure) {
8080
return onError?.call(context, state.error) ?? const SizedBox();
8181
} else {
82-
return const SizedBox();
82+
throw ArgumentError.value(state, 'state');
8383
}
8484
},
8585
);

0 commit comments

Comments
 (0)