using firebase emulator for flutter development code example
Example: how to use firebase in the emulator in the flutter
firebase init
# Choose emulators, then firestore when prompted
firebase emulators:start
firebase init
# Choose emulators, then firestore when prompted
firebase emulators:start