Upgrading bloc 8 to 9
Breaking8.1.4 → 9.2.1Breaking2New2Fixed1Other9
BreakingUpgrade verdict
2 breaking changes.
In plain terms
- The old BlocOverrides way of configuring blocs is gone, so code using it must switch to the newer approach.
- A new interface is added, and the base class for blocs and cubits now implements it.
Must act 2 items need code or config changes
Dart SDK requirement changed in 9.0.0: >=2.12.0 <4.0.0 → >=2.14.0 <4.0.0.
What you must change
Breaking2
Removes the deprecated BlocOverrides API.
BlocOverridesIntroduces EmittableStateStreamableSource, which BlocBase<State> now implements.
EmittableStateStreamableSourceBlocBase