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.
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.
- country_code
Provides ISO 3166-1 country codes in an enum-like class with parsing and user-assigned elements.
77Compare - intersperse
Insert a given element between each element of an Iterable or List.
50Compare - nigerian_states_and_lga
Provides a list of all Nigerian states and local government areas.
41Compare - sorted_list
A Dart list that automatically keeps its elements sorted.
48Compare
Works with
Packages commonly used together with pluto_filtered_list: ones it builds on, ones built on it, and its own family.
- pluto_gridSame familyA data grid widget that supports keyboard control, column grouping, and editing.
- pluto_menu_barSame familyA horizontal menu bar widget for Flutter supporting nested submenus, checkboxes, and radio items.
- pluto_layoutSame familyConfigure menus or tab screens on each side of a Flutter layout.