How To Use The map() Function In Dart
2 min readApr 28, 2021
Read this post with code syntax highlighting on Coffeeclass.io.
The Problem
Recently, I was building a Flutter app and I needed to map over an array of users when a user logged in and check if their username, password, and security question answer matched what was in the database (the userArray). I tried to do something like this: