isAllScenes function

bool isAllScenes(
  1. List<SceneType>? currentScenes,
  2. dynamic targetScenes
)

判断多个场景是否全部匹配

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));
}