Skip to content

Upgrading bloc 8 to 9

Breaking8.1.4 → 9.2.1Breaking2New2Fixed1Other9

BreakingUpgrade verdict

2 breaking changes.

  • 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.
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.

Breaking2
Removes the deprecated BlocOverrides API.
BlocOverrides
Introduces EmittableStateStreamableSource, which BlocBase<State> now implements.
EmittableStateStreamableSourceBlocBase