Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- StreamBuilder(
- stream: Firestore.instance
- .collection('stripe_customers')
- .document(userId)
- .collection('sources')
- .document('source')
- .snapshots(),
- builder: (context, snapshot) {
- if (!snapshot.hasData) {
- return new Text("hello");
- }else {
- var userDocument = snapshot.data;
- return new Text(userDocument["card"]['exp_year'].toString());
- }
- },
- ),
- {
- var userDocument = snapshot.data;
- return new Text(userDocument["card"]['exp_year'].toString());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement