Complete the code to import the Firestore package in Flutter.
import 'package:cloud_firestore/[1].dart';
The correct import for Firestore in Flutter is cloud_firestore/firestore.dart.
Complete the code to get a Firestore instance in Flutter.
final FirebaseFirestore firestore = FirebaseFirestore.[1];Use FirebaseFirestore.instance to get the Firestore instance.
Fix the error in the code to add a new document to the 'users' collection.
await firestore.collection('users').[1]({'name': 'Alice', 'age': 25});
To add a new document with an auto-generated ID, use add().
Fill both blanks to update the 'age' field of a user document with ID 'user123'.
await firestore.collection('users').doc([1]).[2]({'age': 30});
Use doc('user123') to select the document, then update() to change fields.
Fill all three blanks to delete a document with ID 'doc789' from the 'items' collection.
await firestore.collection([1]).doc([2]).[3]();
Use collection('items'), then doc('doc789'), and finally delete() to remove the document.
