skip to Main Content

Android Studio – How can I resolve " Error: The operator '[]' isn't defined for the class 'Object?'"

appBar: AppBar( title: StreamBuilder<DocumentSnapshot>( stream: _firestore.collection('users').doc(userMap['uid']).snapshots(), builder: (context, snapshot){ if (snapshot.data != null){ return Container( child: Column( children: [ Text(userMap['name']), Text( snapshot.data!.data()['status'], style: TextStyle(fontSize: 14), ) ], ), ); }else{ return Container(); } } I try to check the status…

VIEW QUESTION
Back To Top
Search