title: How can I resolve " Error: The operator '[]' isn't defined for the class 'Object?'"
body: <pre><code>appBar: AppBar(
      title: StreamBuilder&lt;DocumentSnapshot&gt;(
          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();
            }
          }
  </code></pre>
  <p>I try to check the status of the user and show in the appbar if the user is online or offline, I already create a variable for that and It's work proprely but when I want to show the status in the appbar I have this error.</p>
  <pre><code>snapshot.data!.data()['status'],
  </code></pre>
  <p>the error is on this line
  if somoene can help that will be cool.</p>