animate method
Implementation
void animate(Duration duration) {
if (!mounted || disposed || updating) {
return;
}
updating = true;
double dt = clock.getDelta();
render(dt);
if(settings.animate){
if(!pause){
for(int i = 0; i < events.length;i++){
events[i].call(dt);
}
}
}
updating = false;
}