findControllerGroups method

List<String> findControllerGroups(
  1. AnimationController controller
)

获取控制器所在的所有分组标签

Implementation

List<String> findControllerGroups(AnimationController controller) {
  return _groups.keys.where((label) {
    final group = _groups[label]!;
    return group.contains(controller);
  }).toList();
}