Animation constructor

Animation([
  1. AnimationEffect? effect,
  2. AnimationTimeline? timeline
])

Implementation

factory Animation([AnimationEffect? effect, AnimationTimeline? timeline]) =>
    Animation._(effect ?? undefined, timeline ?? undefined);