Episode 5 - Create App State Notifier Functions
In our AppStateManager class, we are going to create few function which will change the value of our defined private variables to true and then notify the changes to our ChangeNotifier. In our initialiseApp() function we have added a timer with 2 seconds of wait, to give us a real feel of initialising of the app.
Our login function will have two String parameters username and password. We wont be needing these parameters as we wont have any login functions but its for users who want to pass username and password to create a login function.
In our Logout function we are setting all the appState Varibales to false. After calling these functions from our provider we will be able to change the state of our application.