Rxdart: Set and emit the new value on v0.26.0

Created on 16 Apr 2021  路  1Comment  路  Source: ReactiveX/rxdart

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 ?

question

Most helpful comment

Using BehaviorSubject.seeded(...) or BehaviorSubject()..add(...) instead

>All comments

Using BehaviorSubject.seeded(...) or BehaviorSubject()..add(...) instead

Was this page helpful?
0 / 5 - 0 ratings