startSynchronizationTimer method
void
startSynchronizationTimer()
Implementation
void startSynchronizationTimer() {
if (executeWhenSynchronized.isNotEmpty) {
// Set a timer to run the synchronization functions after a 30ms delay.
_syncTimer = Timer(Duration(milliseconds: delayMiliseconds), () {
for (var functionToExecute in executeWhenSynchronized) {
functionToExecute(); // Execute each queued function.
}
isSynchronized = true;
});
} else {
isSynchronized = true;
}
}