darq
2.1.0, released a year ago by an unverified publisher
Port of .NET LINQ and MoreLINQ functional enumerable extension methods to Dart.
WASM-ready
What it does
Extends native Dart Iterables with over 110 functional programming methods like select, distinct, groupBy, and more. Also provides custom tuple classes up to Tuple9 and utility iterables.
AI-written summary of version 2.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to use .NET-style LINQ and MoreLINQ query operators on Dart Iterables.
- You need type-safe immutable tuples ranging from Tuple0 to Tuple9.
- You want lazy-evaluated data transformations and extensions.
Skip it when
- You only need basic built-in Dart collection methods like map, where, and expand.
- You are looking for state management or complex UI layout tools.
Strengths
- Massive collection of powerful extension methods for Iterables.
- Includes serialization-ready immutable tuples and Dart 3 record deconstruction support.
- Lazy evaluation prevents unnecessary computation.
Weaknesses
- Adds a large surface area of extension methods which might clutter auto-completions.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
var list = [10, 20, 30];
var mappedList = list.select((i, index) => '$index-$i'); // ['1-10', '2-20', '3-30']Alternatives
Packages that do the same job and could replace darq.
Works with
Packages commonly used together with darq: ones it builds on, ones built on it, and its own family.