title: I/flutter (22027): MissingPluginException(No implementation found for method DocumentReference#setData on channel plugins.flutter.io/cloud_firestore)
body: <pre><code>Future&lt;void&gt; _getUserData() async {
    final database = Firestore.instance;
    try {
      FirebaseUser _currentUser = await FirebaseAuth.instance.currentUser();
      String authid =_currentUser.uid;
      String email = _currentUser.email;
      Map&lt;String, String&gt; userData = {
        'AuthUserId':'$authid',
        'Email':'$email',
        'FullName': '',
        'MobileNum': '',
        'Address': '',
        'City/Village': '',
        'District': '',
        'State': '',
        'PinCode': '',
      };
     database.collection('UserData').add(userData).catchError((e) {
       print(e);
      });
   } catch (e) {
      print(e);
   }
  }
  @override
  void initState() {
      super.initState();
      _getUserData();
    }
  </code></pre>
  
  <p>"I am trying to insert the data into the cloud firestore and i have called this function in initState() but i ham getting error as i have mentioned above </p>