Animation constructor

Animation({
  1. String name = '',
  2. List<AnimationChannel>? channels,
})

Implementation

Animation({this.name = '', List<AnimationChannel>? channels})
    : channels = channels ?? [],
      _endTime = channels?.fold<double>(0.0,
              (double previousValue, AnimationChannel element) {
            return max(element.resolver.getEndTime(), previousValue);
          }) ??
          0.0;