Bug report: codegen emits invalid null type for List<Document> AppState field mutators
Project: Zac Ap (zac-app-8zby3d)
Affected field: AppState field favoritesList, declared type List<Document<userRecipes>>
Symptom: Exported lib/app_state.dart fails to compile — the four generated list-mutator methods use the literal word null as a parameter/return type instead of the record class:
void addToFavoritesList(null value) { ... }
void removeFromFavoritesList(null value) { ... }
void updateFavoritesListAtIndex(int index, null Function(null) updateFn) { ... }
void insertAtIndexInFavoritesList(int index, null value) { ... }
This blocked a "Deploy to App Store" cloud build.
Comparison: A page-state field on RecipeFavoritesPagesPage with the identical declared type generates correctly (UserRecipesRecord throughout) — pointing to the bug being specific to AppState-scoped List<Document<...>> fields.
Ask: Fix codegen so AppState-scoped List<Document<...>> fields resolve the correct record type, matching page-state behavior.