Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

how to groupby list of maps in flutter

var data = [
     {"title": 'Avengers', "release_date": '10/01/2019'},
     {"title": 'Creed', "release_date": '10/01/2019'},
     {"title": 'Jumanji', "release_date": '30/10/2019'},
   ];


   var newMap = groupBy(data, (Map oj) => oj['release_date']);

   print(newMap);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #groupby #list #maps #flutter
ADD COMMENT
Topic
Name
2+4 =