addAnimationEvent method

void addAnimationEvent(
  1. dynamic event(
    1. double dt
    )
)

Implementation

void addAnimationEvent(Function(double dt) event){
  events.add(event);
}