bloc.dart:24:44: Error: No named parameter with the name 'seedValue'.
This is most likely due to the following breaking change (from the changelog):
BehaviorSubject now has a separate factory constructor seeded()
Today I found the same mistake, and yesterday everything worked perfect,
bloc.dart:24:44: Error: No named parameter with the name 'seedValue'.
_stateSubject = BehaviorSubject
I've encountered the same issue. Any object that extends Bloc causes the issue, as the offending line is in the Bloc constructor (bloc.dart:24:44). It appears that BehaviorSubject<State>(seedValue: initialState) should now be BehaviorSubject.seeded(initialState) in rxdart 0.21.0 onwards.
This is due to a breaking change in v0.21.0 of rxdart as @chip2n and @wm17 pointed out.
pubspec.yaml to resolve this.dependencies:
rxdart: ">=0.18.1 <0.21.0"
Update: this is now fixed in bloc v0.9.3 so you should be able to just do a flutter packages get and the issue should be resolved.
Most helpful comment
This is due to a breaking change in
v0.21.0ofrxdartas @chip2n and @wm17 pointed out.105 will address this. I'll let everyone know when I've published the change. In the meantime you can just add a restriction for rxdart in your own
pubspec.yamlto resolve this.