connect flutter app with firebase emulator 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