TakeLastStreamTransformer<T> constructor

TakeLastStreamTransformer<T>(
  1. int count
)

Constructs a StreamTransformer which emits only the final count events from the source Stream.

Implementation

TakeLastStreamTransformer(this.count) {
  if (count < 0) throw ArgumentError.value(count, 'count');
}