Question : sort list bool dart
Answered by : alexander-ibekason
booleans.sort((a, b) { if(b) { return 1; } return -1;
});
Source : https://stackoverflow.com/questions/62031301/how-do-you-sort-a-list-by-bool-in-dart | Last Update : Thu, 16 Jun 22
Answered by : alexander-ibekason
booleans.sort((a, b) { if(b) { return 1; } return -1;
});
Source : https://stackoverflow.com/questions/62031301/how-do-you-sort-a-list-by-bool-in-dart | Last Update : Thu, 16 Jun 22