TopBarElements class

插槽元素 key 常量定义

配合 AliPlayerWidget.hiddenSlotElements 使用,用于隐藏默认插槽内的单个 UI 元素。

Element key constants for use with AliPlayerWidget.hiddenSlotElements, allowing fine-grained visibility control of individual UI elements within each default slot.

示例 / Example:

AliPlayerWidget(
  controller,
  hiddenSlotElements: {
    SlotType.topBar: {TopBarElements.download, TopBarElements.snapshot},
    SlotType.bottomBar: {BottomBarElements.fullscreen},
  },
)

顶部栏元素 key 常量

Top bar element key constants.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

back → const String
返回按钮
download → const String
下载按钮
pip → const String
画中画按钮
settings → const String
设置按钮
snapshot → const String
截图按钮
title → const String
标题