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

A collection util can process list by some operation like flatMap distinct shuffle and reduce. Taking ispiration from java stream

Dart Stream #

A collection util inspired by java streams

GitHub License

Show Case #

loading

Example #

import 'package:dart_stream/dart_stream.dart';

void main() {
  print(DartStream.of([1, 2, 3]).map((t) => t - 1).allMatch((t) => t > 0));
  print([1, 2, 3].toStream().map((t) => t - 1).toList());
}

Pub.dev #

flutter pub add dart_stream

Todo List #

  • ✅ : shuffle
  • ✅ : reverse
  • ✅ : takeWhile
  • ✅ : dropWhile
  • ❌ : more unit test
  • ❌ : more async method

See Also #

License #

The MIT License, see LICENSE.

2
likes
130
points
48
downloads

Publisher

unverified uploader

Weekly Downloads

A collection util can process list by some operation like flatMap distinct shuffle and reduce. Taking ispiration from java stream

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on dart_stream