for someone who get this error : state.where: void filterPlayersByName(String name) { if (name.isEmpty) { state = allPlayer; // Nếu tên trống, hiển thị tất cả người chơi } else { state = allPlayer.where((player) { final playerName = player['name'] as String; return playerName.toLowerCase().contains(name.toLowerCase()); }).toList(); } } it will work.
so neat and good way of managing token. As I am using bloc, it would take little time to manage these all. anyway I would do it. and thank you for this video
waiting for it , but be sure in your next videos you use Clean Arch. , SOLID , Best File Structure , Developer Experience based app using Macros or Code Gen tools , prefer Repository, and Use case based ARCH.