skip to Main Content

Firebase – Flutter – Firestore data assign to a variable

I need to retrieve data from firestore collection and assign exact value to String... Here is my code. class _AbcState extends State<Abc> { @override Widget build(BuildContext context) { return StreamBuilder<QuerySnapshot>( stream: FirebaseFirestore.instance.collection('boat').snapshots(), builder: (context, snapshot) { if (snapshot.hasError) { return…

VIEW QUESTION
Back To Top
Search