Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. StreamBuilder(
  2. stream: Firestore.instance
  3. .collection('stripe_customers')
  4. .document(userId)
  5. .collection('sources')
  6. .document('source')
  7. .snapshots(),
  8. builder: (context, snapshot) {
  9. if (!snapshot.hasData) {
  10. return new Text("hello");
  11. }else {
  12. var userDocument = snapshot.data;
  13. return new Text(userDocument["card"]['exp_year'].toString());
  14. }
  15. },
  16. ),
  17.  
  18. {
  19. var userDocument = snapshot.data;
  20. return new Text(userDocument["card"]['exp_year'].toString());
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement