checkMessages method
This method checks the messages from the server and shows them, if needed. It's called automatically at startup, but it can be called to force the check.
Implementation
Future<void> checkMessages() async {
_performCheckMessages(fromStartup: false);
}