title: Flutter + Firebase Cloud Functions - How to get data from HttpsCallableResult
body: <p>I have written a simple cloud function that returns an id that is saved within my Cloud Firestore database.</p>
  
  <p>The cloud function looks like this:</p>
  
  <pre><code>
  exports.getWinkert = functions.https.onCall((data, context) =&gt; {
  
      return admin.firestore().collection('users').doc('hash').get()
      .then(snapshot =&gt; {
          const winkertId = snapshot.wwinkert
          return { id: winkertId };
      })
  })
  
  </code></pre>
  
  <p>This function is called from my flutter app with this code:</p>
  
  <pre><code>
  Future _getValues() async {
      final HttpsCallable callable = CloudFunctions.instance.getHttpsCallable(
        functionName: "getWinkert",
      );
      dynamic resp = await callable.call(&lt;String, dynamic&gt;{
        "name": "wwinkert",
      });
      print(resp.toString());
    }
  
  </code></pre>
  
  <p>Upon calling the function, I get this result:</p>
  
  <pre><code>I/flutter ( 8253): Instance of 'HttpsCallableResult'
  </code></pre>
  
  <p>Question: How do I get my data from the HttpsCallableResult instance in Dart?</p>
  
  <p>Thank you for your help in advance!</p>
  
  <p>Greets,
  Raul</p>