rxdart_ext 0.1.2 copy "rxdart_ext: ^0.1.2" to clipboard
rxdart_ext: ^0.1.2 copied to clipboard

outdated

Some extension methods and classes built on top of RxDart - RxDart extension.

example/lib/rxdart_ext_example.dart

import 'package:rxdart_ext/rxdart_ext.dart';

void main() {
  Stream.fromIterable([1, 2, 3, 4]).debug().collect();

  final state$ = StateSubject(1);
  state$.debug(identifier: '<<State>>').collect();
  print(state$.value);

  RxSingles.zip2(
    Single.value(1).delay(const Duration(milliseconds: 100)),
    Single.fromCallable(
        () => Future.delayed(const Duration(milliseconds: 200), () => 2)),
    (int p0, int p1) => p0 + p1,
  ).doOnData(state$.add).listen((_) => print(state$.value));
}
14
likes
0
points
18.9k
downloads

Publisher

unverified uploader

Weekly Downloads

Some extension methods and classes built on top of RxDart - RxDart extension.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

meta, path, rxdart, stack_trace

More

Packages that depend on rxdart_ext