isSlotDisabled static method

bool isSlotDisabled(
  1. AliPlayerWidget widget,
  2. SlotType slotType
)

检查插槽是否被禁用

Check if slot is disabled (explicitly set to null)

Implementation

static bool isSlotDisabled(AliPlayerWidget widget, SlotType slotType) {
  return widget.slotBuilders.containsKey(slotType) &&
      widget.slotBuilders[slotType] == null;
}