sortedmap 0.5.1 icon indicating copy to clipboard operation
sortedmap: ^0.5.1 copied to clipboard

A map of objects which can be sorted and filtered on both their key and value

example/main.dart

import 'package:sortedmap/sortedmap.dart';

void main() {
  var map = SortedMap(Ordering.byValue());

  map.addAll({'a': 3, 'b': 2, 'c': 4, 'd': 1});

  print(map.lastKeyBefore('c')); // a
  print(map.firstKeyAfter('d')); // b
}
34
likes
130
pub points
91%
popularity

Publisher

verified publisher iconappsup.be

A map of objects which can be sorted and filtered on both their key and value

Homepage

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

quiver

More

Packages that depend on sortedmap