rx_pack 1.0.3 copy "rx_pack: ^1.0.3" to clipboard
rx_pack: ^1.0.3 copied to clipboard

Extension for Dart's Stream class that adds additional functionality.

example/rx_pack_example.dart

import 'package:rx_pack/rx_pack.dart';

void main() {
  final stream = Stream.fromIterable([1, 2, 3, 4]).map((event) {
    print('emit $event');
    return event;
  });

  stream.withPrevious().listen((value) {
    print(value); // Output 1, 2, 3
  });
}
0
likes
150
points
27
downloads

Publisher

unverified uploader

Weekly Downloads

Extension for Dart's Stream class that adds additional functionality.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

rxdart

More

Packages that depend on rx_pack