Fixed implicit variable declarations in constructors for counterViewModel, pageViewModel, and counterCategoryMenuItem.