isNotScene function
判断当前场景是否不属于指定场景
Check if the current scene does not match the specified scene or scene list
Implementation
bool isNotScene(
AliPlayerWidgetData? widgetData,
dynamic targetScenes, // 支持 SceneType 或 List<SceneType>
) {
final scenes = _normalizeScenes(targetScenes);
return widgetData == null || !scenes.contains(widgetData.sceneType);
}