view_model_widgets_view_models_like_button_view_modelLikeButtonViewModel constructorsetIsLiked methodOn this pagesetIsLiked method void setIsLiked ({bool val = true}) This function set _isLike to true. Implementation void setIsLiked({bool val = true}) { _isLiked = val; notifyListeners();}