Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将 Dart 转换Observable为 a Future,反之亦然?
Observable
Future
要将 a 转换Observable为 a Future:
myObservable.first
myObservable.firstWhere
要将 a 转换Future为Observable:
Observable.fromFuture(myFuture)
或者进入一个简单的流:
myFuture.asStream()