playAll method

void playAll({
  1. Duration? duration,
})

播放所有分组的所有动画

Implementation

void playAll({Duration? duration}) {
  _hasTriggeredAllCompleted = false;

  for (final label in _groups.keys) {
    _groupCompletionStatus[label] = false;
    final group = _groups[label]!;
    for (final controller in group) {
      _controllerCompletionStatus[controller] = false;
      _playController(controller, duration: duration);
    }
  }
}