sorted_list 1.0.0 icon indicating copy to clipboard operation
sorted_list: ^1.0.0 copied to clipboard

A dart sorted list that keeps its elements ordered in the specified sequence.

example/main.dart

import 'package:sorted_list/sorted_list.dart';

main(List<String> args) {
  var sortedList = SortedList<int>((a, b) => a.compareTo(b));
  sortedList.add(1);
  sortedList.add(5);
  sortedList.add(3);
  sortedList.addAll([6, 9, 2]);

  for (var i in sortedList) {
    print(i);
  }
}
15
likes
130
pub points
84%
popularity

Publisher

verified publisher iconpatchme.app

A dart sorted list that keeps its elements ordered in the specified sequence.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

collection

More

Packages that depend on sorted_list