startMessageTimer static method
Starts the timer to check periodically messages. @param time The time interval in seconds.
Implementation
static startMessageTimer({required int time}) {
timer = Timer.periodic(
Duration(seconds: time),
(timer) => checkMessages(fromStartup: false),
);
}