trackEntry method

TrackEntry? trackEntry(
  1. int trackIndex,
  2. Animation animation,
  3. bool loop,
  4. TrackEntry? last,
)

Implementation

TrackEntry? trackEntry(
    int trackIndex, Animation animation, bool loop, TrackEntry? last) {
  final TrackEntry? entry = trackEntryPool.obtain()
    ?..trackIndex = trackIndex
    ..animation = animation
    ..loop = loop
    ..eventThreshold = 0.0
    ..attachmentThreshold = 0.0
    ..drawOrderThreshold = 0.0
    ..animationStart = 0.0
    ..animationEnd = animation.duration
    ..animationLast = -1.0
    ..nextAnimationLast = -1.0
    ..delay = 0.0
    ..trackTime = 0.0
    ..trackLast = -1.0
    ..nextTrackLast = -1.0
    ..trackEnd = double.infinity
    ..timeScale = 1.0
    ..alpha = 1.0
    ..interruptAlpha = 1.0
    ..mixTime = 0.0
    ..mixDuration =
        last == null ? 0.0 : data.getMix(last.animation!, animation);
  return entry;
}