Animation constructor

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

Implementation

factory Animation([
  _i3.AnimationEffect? effect,
  _i3.AnimationTimeline? timeline,
]) =>
    _i4.callConstructor(
      _declaredAnimation,
      [
        effect ?? _i6.undefined,
        timeline ?? _i6.undefined,
      ],
    );