talira

stream_transform

Debounce, throttle, switchMap and other operators for Dart streams

open sourceBSD-3-Clausefree

stream_transform is the Dart team's collection of extension methods that add common transform operators to Dart's Stream: debounce and throttle, audit and buffer, combineLatest, merge, switchMap, scan, startWith, takeUntil, tap, whereType, and alternatives to asyncMap that buffer, sample or run concurrently. Its names and semantics overlap with Rx operators in places and differ in others. It lives in the dart-lang/tools mono-repo and is published on pub.dev by tools.dart.dev.

Problems it solves

  • debounce a search box's input stream in a Flutter app
  • throttle or buffer events coming from a Dart stream
  • combine the latest values from several Dart streams

Features

  • Debounce, throttle, audit and buffer for Dart streams
  • combineLatest, merge, switchMap and scan
  • asyncMap variants that buffer, sample or run concurrently
  • Extension methods on Stream, no wrapper types

Alternatives

The same job

These do what stream_transform does.

  1. RxDart ReactiveX operators, Subjects and extra Stream classes for Dart Streams

Compare stream_transform with the top 3