Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:cloud_firestore/cloud_firestore.dart';
- import 'dart:async';
- import 'package:firebase_auth/firebase_auth.dart';
- class MethodA {
- // id(user, context){
- // var name =user.email;
- // }
- String identity;
- MethodA({this.iD});
- bool isLoggedIn() {
- if (FirebaseAuth.instance.currentUser() != null) {
- return true;
- } else {
- return false;
- }
- }
- Future<void> addUserA( userinfo) async {
- //this.iD=id;
- Firestore.instance
- .collection('user')
- .document('furtherinfo').collection(identity).document('Personal Info')
- .setData(userdoc)
- .catchError((e) {
- print(e);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement