startMessageTimer static method

dynamic startMessageTimer({
  1. required int time,
})

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),
  );
}