Skip to content
pubscout

pluto_filtered_list

0.2.0, released 6 years ago by weblaze.dev

A Dart List where filters can be applied and elements accessed or modified in that state.

WASM-ready
$ flutter pub add pluto_filtered_list
Source repository

What it does

Provides a FilteredList class that allows applying filters while retaining the ability to access, modify, insert, or remove elements relative to the filtered or original state.

AI-written summary of version 0.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a collection list that supports active filtering while allowing modifications.
  • You want to manipulate items within a filtered subset or the original underlying list seamlessly.

Skip it when

  • You need reactive state management frameworks to handle list UI rebuilds automatically.
  • You require range modification operations like removeRange, fillRange, or replaceRange which are not yet implemented.

Strengths

  • Allows fine-grained operations relative to filtered or original scopes (e.g. remove vs removeFromOriginal).
  • Simple API that mirrors a standard Dart List.

Weaknesses

  • Several range methods (removeRange, fillRange, replaceRange) are not implemented yet.
  • Limited documentation and features outside of basic list manipulations.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1
var list = FilteredList(initialList: [1, 2, 3, 4, 5]);
list.setFilter((e) => e > 3); // [4, 5]
list.insert(0, 35); // [35, 4, 5]

Alternatives

Packages that do the same job and could replace pluto_filtered_list.

Works with

Packages commonly used together with pluto_filtered_list: ones it builds on, ones built on it, and its own family.