Questions
Q:

The method ‘document’ isn’t defined for the type ‘CollectionReference’ – flutter

The method document isn’t defined for the type CollectionReference. Try correcting the name to the name of an existing method, or defining a method named document. dart undefined_method

flutter-document-error-doc