Closed chip2n closed 5 years ago
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.
This is most likely due to the following breaking change (from the changelog):