Created
December 15, 2020 18:06
-
-
Save jairoFernandez/715f7f442cb2749b25c3efbecd1f3c3a to your computer and use it in GitHub Desktop.
Indexer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
indexerListUser(List<dynamic> users) { | |
final data = []; | |
for (var i = 0; i < users.length; i++) { | |
data.add({users[i]['id']: users[i]}); | |
} | |
return data; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment