who to iterate mixed List and Map and object in dart and flutter

Issue how can i iterate bello list and show it in my structure? List courses = [ {‘course 1’:{‘p’:[‘course 0′],’need’:[],’v’:3}}, {‘course 2’:{‘p’:[],’need’:[‘course 1′,’course 0′],’v’:2}}, {‘course 3’:{‘p’:[‘course 1′],’need’:[],’v’:2}}, ]; @override Widget build(BuildContext context) { return Container( child: Column(children: [ …courses.map((e) =>

Continue reading

How to sort String List by newest in dart

Issue i have String List, per element contains userId+DateTime List<String> = [ ‘9DWXpF6V4vN8oxqvsHKnOBg2Rz2022-09-14 00:07:52.707’, ‘8jk9wQ0U5gNyekzNz84SDb0jDTf12022-09-12 00:07:52.704’, ‘0RMRZFCifmSe2CGW6k7Rvq8gvni2022-09-13 00:07:52.704’ ] now i need to sort the list from newest to oldest depends of that DateTime next to User Id so i

Continue reading