isAnyScene function
判断多个场景是否有任意一个匹配
Check if any of the current scenes matches any of the target scenes
Implementation
bool isAnyScene(
List<SceneType>? currentScenes,
dynamic targetScenes,
) {
if (currentScenes == null || currentScenes.isEmpty) return false;
final scenes = _normalizeScenes(targetScenes);
return currentScenes.any((scene) => scenes.contains(scene));
}