flinq
2.0.2, released 6 years ago by thisismarch.dev
Extended capabilities and shortcuts for Dart collections to reduce boilerplate work.
WASM-ready
What it does
Provides a collection of extensions for Iterables in Dart, offering shortcuts for filtering, mapping, grouping, math calculations, and set operations. Helps avoid unnecessary boilerplate when working with lists and iterables.
AI-written summary of version 2.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to avoid repetitive boilerplate code when filtering and mapping collections
- You need convenient utilities for getting null-safe first, last, or single elements
- You need built-in math operations like sum and average on iterables
Skip it when
- You prefer using standard Dart SDK collection methods exclusively
Strengths
- Reduces boilerplate code for common collection operations
- Provides null-safe getters for first, last, and single elements
- Supports grouping, math, and set operations out of the box
Weaknesses
- Adds external dependency for operations largely covered by standard libraries or package:collection
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
List<double> mappedList = [3, 6, 2, 7, 9].mapList((item) => item.toDouble());
final min = [3, 6, 2, 7, 9].min; // 2Works with
Packages commonly used together with flinq: ones it builds on, ones built on it, and its own family.