Use dogmatic dart.
Add class for storing userstate.
Add logging in on server and retrieving userstate.
Return userstate as part of login.
Add UserStateUpdated event.