It is not possible for state to be null #1312
Labels
breaking change
Enhancement candidate would introduce a breaking change
enhancement
New feature or request
pkg:bloc
This issue is related to the bloc package
Projects
Milestone
Describe the bug
It seems that at the moment
bloc
does not allow the state (initial or current) to be null. If either of them are null, this error occurs:Unhandled error 'package:bloc/src/transition.dart': Failed assertion: line 25 pos 16: 'currentState != null': is not true.
.To Reproduce
null
.mapEventToState
.Expected behavior
I expect to be able to use null as a valid current state.
The text was updated successfully, but these errors were encountered: