SlotManager class
插槽管理器
负责管理播放器插槽的构建逻辑,提供统一的插槽构建接口
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
Static Methods
-
buildMultipleSlots(
{required AliPlayerWidget widget, required Map< SlotType, Widget Function(BuildContext context)> defaultBuilders, required BuildContext context}) → Map<SlotType, Widget> - 批量构建多个插槽
-
buildOverlaysSlot(
{required AliPlayerWidget widget, required Widget defaultBuilder(BuildContext context), required BuildContext context}) → List< Widget> - 构建浮层插槽
-
buildSlot(
{required AliPlayerWidget widget, required SlotType slotType, required Widget defaultBuilder(BuildContext context), required BuildContext context}) → Widget - 构建插槽或默认组件
-
hasCustomBuilder(
AliPlayerWidget widget, SlotType slotType) → bool - 检查插槽是否有自定义构建器
-
isSlotDisabled(
AliPlayerWidget widget, SlotType slotType) → bool - 检查插槽是否被禁用