view_model_base_view_modelBaseModel constructorsetState methodOn this pagesetState method void setState (ViewState viewState) Implementation void setState(ViewState viewState) \{ _state = viewState; notifyListeners();\}