isAllScenes function
判断多个场景是否全部匹配
Check if all current scenes match the target scenes
Implementation
bool isAllScenes(
List<SceneType>? currentScenes,
dynamic targetScenes,
) {
if (currentScenes == null || currentScenes.isEmpty) return false;
final scenes = _normalizeScenes(targetScenes);
return currentScenes.every((scene) => scenes.contains(scene));
}