Animation constructor
Animation({
- String name = '',
- 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;