more
4.9.0, released 13 days ago by lukas-renggli.ch
A collection of utility extensions and specialized data structures for Dart.
What it does
Provides collections, iterables extensions, graph theory algorithms, math and number types, caching strategies, and character matching tools. It complements the Dart standard library with extensively tested data structures and utilities.
AI-written summary of version 4.9.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need advanced collection types like Multimaps, BiMaps, and BitLists.
- You require graph-theory data structures and algorithms such as shortest pathing.
- You want exact rational arithmetic, complex numbers, or math extensions on integers.
Skip it when
- You only need basic collections already covered by dart:collection.
- You want a fully-fledged state management library.
Strengths
- Extensively tested comprehensive set of utilities.
- Includes specialized data structures and algorithms not found in core Dart.
- Supports multiple libraries like caching, graph theory, and functional types.
Weaknesses
- Large assortment of disparate features may pull in more than needed if only a small utility is required.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
import 'package:more/collection.dart';
final multimap = ListMultimap<String, int>()
..add('even', 2)
..add('even', 4)
..add('odd', 1);
print(multimap['even']);Alternatives
Packages that do the same job and could replace more.
- fast_immutable_collections
Fast immutable lists, sets, maps, and multimaps for Dart
91Compare - ordered_set
Ordered Set that keeps elements sorted and allows duplicates by priority.
82Compare - tuple
Provides immutable tuple classes for grouping values.
50Compare - flutter_requery
Flutter widget library for fetching, caching and invalidating async data.
47Compare
Works with
Packages commonly used together with more: ones it builds on, ones built on it, and its own family.
- clockmore depends on itA fakeable wrapper for dart:core clock APIs.
- charactersmore depends on itUnicode and grapheme cluster aware string manipulation operations for Dart.
- rxBuilt on moreReactive Extensions library for Dart offering observable streams and async operators.
- dataBuilt on moreTime and space efficient data structures and algorithms for vectors, matrices, and math.