firestoreodm-flutter
firestoreodm-flutter copied to clipboard
[cloud_firestore_odm] Have an error if the @Collection is in a different file from the model
Moved from: https://github.com/firebase/flutterfire/issues/11236
Related to https://github.com/firebase/flutterfire/issues/11228
Currently, if the model & collection reference are in different files, we'll get a compilation error. This is a known limitation, but we are lacking a nice error message to catch this early on. At the moment, folks would have to find it the hard way, by having a compilation error in the generated code and googling why that is the case.