下面是我的代码: provider类: class EmpAndState with ChangeNotifierEmpAndState({@required this.empId, this.stateId = "1"});
class EmpsAstates with ChangeNotifier
我已经使用提供程序包来管理颤振应用程序状态,但我在使用它时面临许多问题。我已经定义了一个简单的提供程序,它有一个布尔变量和一个改变变量值的方法。class LoadingModel with ChangeNotifier{ notifyListeners();现在,我想调用changeLoadingState()方法,该方法在提供程序
我正在使用ListView.Builder.提供程序包和在颤振中构建简单的应用程序class TaskModel { //Model class for the datagetIsCompleted => isCompleted;}class Tasker extends ChangeNotifier