개발/Flutter
how to compare boolean value?
dev_caleb
2022. 12. 16. 20:44
728x90
This is simple algorithm for compare with boolean value!
matjipList.sort((a, b) => (a.visited? 1:0).compareTo(b.visited? 1:0));

728x90