Open KlubAndroid opened 3 years ago
Hi my Sqlite returning rawQuery witch is Future<List<Map<String, dynamic>>> ... hot to conver result to map of type in example. Map<String, List> _elements = { 'Team A': ['Klay Lewis', 'Ehsan Woodard', 'River Bains'], 'Team B': ['Toyah Downs', 'Tyla Kane'], 'Team C': ['Marcus Romero', 'Farrah Parkes', 'Fay Lawson', 'Asif Mckay'], 'Team D': [ 'Casey Zuniga', 'Ayisha Burn', 'Josie Hayden', 'Kenan Walls', 'Mario Powers' ], 'Team Q': ['Toyah Downs', 'Tyla Kane', 'Toyah Downs'], };
@KlubAndroid it depends, what is your groups and what is your row for each group? In the example the groups are the keys of the map and the value for each key is a list containing the items in this group.
Hi my Sqlite returning rawQuery witch is Future<List<Map<String, dynamic>>> ... hot to conver result to map of type in example. Map<String, List> _elements = { 'Team A': ['Klay Lewis', 'Ehsan Woodard', 'River Bains'], 'Team B': ['Toyah Downs', 'Tyla Kane'], 'Team C': ['Marcus Romero', 'Farrah Parkes', 'Fay Lawson', 'Asif Mckay'], 'Team D': [ 'Casey Zuniga', 'Ayisha Burn', 'Josie Hayden', 'Kenan Walls', 'Mario Powers' ], 'Team Q': ['Toyah Downs', 'Tyla Kane', 'Toyah Downs'], };