How we can manage states in flutter? and also explain the states in flutter.