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