【问题标题】:What to use instead "combineLatest2" in RxDart?在 RxDart 中使用什么来代替“combineLatest2”?
【发布时间】:2020-05-15 00:22:06
【问题描述】:

更新 RxDart 到 0.23.x 后,你不能使用“Observable”类和“combineLatest2”方法。那我应该改用什么?

【问题讨论】:

标签: flutter dart stream observable rxdart


【解决方案1】:

使用 Rx.combineLatest2 代替 Observable.combineLatest2 喜欢:

Stream<bool> get submitValid => Rx.combineLatest2(email, password, (email, password) => true);

【讨论】:

    猜你喜欢
    • 2011-10-02
    • 2011-10-12
    • 1970-01-01
    • 2018-11-24
    • 2023-03-30
    • 2011-09-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多