I upgrade an existing app that use rxdart, i get this exception for all the BehavioreSubject that try to set a new value.
Code that throw the error _There isn鈥檛 a setter named 'value' in class 'ValueStreamExtensions'._ :
final BehaviorSubject<double> aspectR = BehaviorSubject()..value = 16 / 9;
final BehaviorSubject<bool> isLoading = BehaviorSubject()..value = true;
How to solve this ?
Using BehaviorSubject.seeded(...) or BehaviorSubject()..add(...) instead
Most helpful comment
Using
BehaviorSubject.seeded(...)orBehaviorSubject()..add(...)instead