Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
π Flutter_Extend Version 0.3.0 is now live! See our changelog for details.
Functional utilities for complex list mapping, efficient sorting by property (selector), chunking for pagination, and creating shuffled copies.
Show Parameters
mapper function
final names = ['Alice', 'Bob']; final widgets = names.mapIndexed((i, name) => Text('No. $i: $name'));
null
final grades = [85, 40]; final passing = grades.mapNotNull((g) => g >= 50 ? g : null); // [85]
final original = [1, 2, 3]; final reversed = original.reversedList; // [3, 2, 1]
Comparable
int
String
true
// Sorts by score in ascending order (10, 20) users.sortBy((user) => user.score);
final originalScores = [10, 50, 20]; final topScores = originalScores.sortByAndReturnSorted((s) => s, ascending: false);
final items = [1, 2, 3, 4, 5, 6, 7]; final chunks = items.chunked(3); // "chunks is [[1, 2, 3], [4, 5, 6], [7]]"
Was this page helpful?