Skip to content

Upgrading bloc 2 to 3

Breaking2.0.0 → 3.0.0Platform1Other1

BreakingUpgrade verdict

A platform requirement change.

  • Upgrade to Dart >= 2.6.0.
1 item needs code or config changes

Dart SDK requirement changed in 3.0.0-dev.1: >=2.0.0 <3.0.0 → >=2.6.0 <3.0.0.

Platform1
Upgrade to Dart >= 2.6.0.

Generated by DepDelta from published Dart source. Not mixed with prose notes.

  • changed: method Bloc.listen( void onData(State value), { Function onError, void onDone(), bool cancelOnError, }): StreamSubscription<State> → method Bloc.listen( void Function(State) onData, { Function onError, void Function() onDone, bool cancelOnError, }): StreamSubscription<State>
  • changed: method Bloc.transformEvents( Stream<Event> events, Stream<State> next(Event event), ): Stream<State> → method Bloc.transformEvents( Stream<Event> events, Stream<State> Function(Event) next, ): Stream<State>