StyleAnimation.combine constructor

StyleAnimation.combine(
  1. List<StyleAnimation> animations
)

Combines multiple animations into one CSS animation value.

Implementation

factory StyleAnimation.combine(List<StyleAnimation> animations) {
  if (animations.isEmpty) {
    throw ArgumentError.value(animations, 'animations', 'Must not be empty.');
  }
  return StyleAnimation(animations.map((item) => item.value).join(', '));
}