iamshaunjp / flutter-firebase

All course files for the Flutter & Firebase tutorial playlist on The Net Ninja YouTube channel
578 stars 440 forks source link

Lesson 19, outdated deprecated functions #35

Open thecheebo opened 3 years ago

thecheebo commented 3 years ago

Use this for the query snapshot: List _brewListFromSnapshot(QuerySnapshot snapshot){ return snapshot.docs.map((doc){ return Brew( name: doc.get('name') ?? '', sugars: doc.get('sugars') ?? '0', strength: doc.get('strength') ?? 0 ); }).toList(); }