Flutter Web

Flutter Web || Flutter with Firebase || Firestore || Firebase Realtime


import 'package:firebase/firebase.dart' as fb;
import 'package:firebase/firestore.dart' as fs;

final fs.Firestore firestore = fb.firestore();

                 firestore.collection('names').add({'text': 'tarun'}); // create

                firestore.collection('names').doc('111').get(); // read

                firestore.collection('names').doc('111').update(data:{'text': 'asset'}); // update

                firestore.collection('names').doc('111').delete(); // delete





Comments